Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8157 in orxonox.OLD for branches


Ignore:
Timestamp:
Jun 5, 2006, 3:55:12 PM (18 years ago)
Author:
snellen
Message:

this won't compile

Location:
branches/script_engine/src/lib/script_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/script_manager.cc

    r8156 r8157  
    115115bool ScriptManager::fileIsInScriptList(std::string& file)
    116116{
    117   for(std::list<LuaScript>::iterator it = scriptList.begin(); it != scriptList.end(); it++ )
     117  for(std::list<LuaScript>::const_iterator it = scriptList.begin(); it != scriptList.end(); it++ )
    118118  {
    119119    if( (*it).name.compare(file) == 0)
     
    128128bool ScriptManager::objectIsInObjectList(std::string& object, const LuaScript& script)
    129129{
    130   for(std::list<std::string>::iterator it = script.objectList.begin(); it != script.objectList.end(); it++ )
     130  for(std::list<std::string>::const_iterator it = script.objectList.begin(); it != script.objectList.end(); it++ )
    131131  {
    132132    if( (*it).compare(object) == 0)
  • branches/script_engine/src/lib/script_engine/script_manager.h

    r8155 r8157  
    3737
    3838   void  init();
    39    void  createScriptList(TiXmlElement* scripts);
     39   void  createScriptList(const TiXmlElement* scripts);
    4040   void  setCurrentScriptFile(std::string& file);
    4141   void  addObjectToScript(std::string& object, LuaScript& script);
Note: See TracChangeset for help on using the changeset viewer.