fixed lua error reported by Wuzzy spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Fri, 13 Sep 2013 02:22:57 +0300
branchspacecampaign
changeset 9620 55c82fd210cb
parent 9619 f5fdb7770880
child 9621 0e633b929825
fixed lua error reported by Wuzzy
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Thu Sep 12 23:20:32 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Fri Sep 13 02:22:57 2013 +0300
@@ -418,6 +418,9 @@
 		ShowMission(unpack(goals[anim]))
     end
     AnimSwitchHog(hero.gear)
+	if anim == dialog01 then
+		startMission()
+	end
 end
 
 function AnimationSetup()
@@ -448,7 +451,7 @@
 --------------- OTHER FUNCTIONS ------------------
 
 function startMission()
-	AnimSwitchHog(bandit1.gear)
+	AnimSwitchHog(ally.gear)
 	TurnTimeLeft = 0
 end