From 364482f022369c219ef1453709732690d18e72f8 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 20 Apr 2013 15:17:40 +0200 Subject: Fix for #180 (bug in commit dd180dd88739eb7dd71a6431b2651a18a36599d3) --- src/object/robotmain.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-1-g7c22