summaryrefslogtreecommitdiffstats
path: root/src/object/robotmain.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-04-20 15:17:40 +0200
committerkrzys-h <krzys_h@interia.pl>2013-04-20 15:17:40 +0200
commit364482f022369c219ef1453709732690d18e72f8 (patch)
treeaeba4ffea35ce74b306a1112ba249a9386d2f1e0 /src/object/robotmain.cpp
parentdd180dd88739eb7dd71a6431b2651a18a36599d3 (diff)
downloadcolobot-364482f022369c219ef1453709732690d18e72f8.tar.gz
colobot-364482f022369c219ef1453709732690d18e72f8.tar.bz2
colobot-364482f022369c219ef1453709732690d18e72f8.zip
Fix for #180 (bug in commit dd180dd88739eb7dd71a6431b2651a18a36599d3)
Diffstat (limited to 'src/object/robotmain.cpp')
-rw-r--r--src/object/robotmain.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp
index 79fc1ab..2729e91 100644
--- a/src/object/robotmain.cpp
+++ b/src/object/robotmain.cpp
@@ -4680,6 +4680,9 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject)
if (m_version >= 2) {
m_endTake[i].powermin = OpInt(line, "powermin", -1);
m_endTake[i].powermax = OpInt(line, "powermax", 100);
+ } else {
+ m_endTake[i].powermin = -1;
+ m_endTake[i].powermax = 100;
}
m_endTake[i].lost = OpInt(line, "lost", -1);
m_endTake[i].immediat = OpInt(line, "immediat", 0);