share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua
changeset 15086 3a561db2a71c
parent 14937 ff4003a90ff8
child 15505 5eda4d7056bc
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua	Wed May 29 13:21:23 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/death02.lua	Fri May 31 11:10:01 2019 +0200
@@ -199,6 +199,9 @@
 end
 
 function onHeroWin(gear)
+	if not IsHogAlive(gear) then
+		return false
+	end
 	local allDead = true
 	for i=1,table.getn(enemies) do
 		if GetHealth(enemies[i].gear) then