summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-10-25 11:30:38 +0200
committerkrzys-h <krzys_h@interia.pl>2014-10-25 11:30:38 +0200
commit4c865322f0142b2ebeb89c4354c7a2f529ea4a7f (patch)
tree04e6d63ff1d0d0b5c011adb1e7ce853e1d4c2927 /src
parente811f7a0ea77112f56082e4546065821c88e0339 (diff)
downloadcolobot-4c865322f0142b2ebeb89c4354c7a2f529ea4a7f.tar.gz
colobot-4c865322f0142b2ebeb89c4354c7a2f529ea4a7f.tar.bz2
colobot-4c865322f0142b2ebeb89c4354c7a2f529ea4a7f.zip
Fixed #341
Diffstat (limited to 'src')
-rw-r--r--src/object/robotmain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp
index 1ad3c6d..f13ef8b 100644
--- a/src/object/robotmain.cpp
+++ b/src/object/robotmain.cpp
@@ -4416,7 +4416,7 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
std::string op = "autoValue"+boost::lexical_cast<std::string>(i+1); // autoValue1..autoValue5
automat->SetValue(i, line->GetParam(op)->AsFloat(0.0f));
}
- automat->SetString(const_cast<char*>(line->GetParam("autoString")->AsString("").c_str()));
+ automat->SetString(const_cast<char*>(line->GetParam("autoString")->AsPath("ai", "").c_str()));
int i = line->GetParam("run")->AsInt(-1);
if (i != -1)
@@ -4681,7 +4681,7 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
continue;
}
- if(read[0] != 0) continue; // ignore errors when loading saevd game (TODO: don't report ones that are just not loaded when loading saved game)
+ if(read[0] != 0) continue; // ignore errors when loading saved game (TODO: don't report ones that are just not loaded when loading saved game)
if(resetObject) continue; // ignore when reseting just objects (TODO: see above)
throw CLevelParserException("Unknown command: '"+line->GetCommand()+"' in "+line->GetLevel()->GetFilename()+":"+boost::lexical_cast<std::string>(line->GetLineNumber()));