fix nil comparison error, see issues 470 and 601
authorPeriklis Ntanasis <pntanasis@gmail.com>
Wed, 01 May 2013 01:27:35 +0300
changeset 8943 63ecf5320439
parent 8942 5a587c7169f2
child 8944 ed2509832311
fix nil comparison error, see issues 470 and 601
share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/first_blood.lua
--- a/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/first_blood.lua	Tue Apr 30 21:06:05 2013 -0400
+++ b/share/hedgewars/Data/Missions/Campaign/A Classic Fairytale/first_blood.lua	Wed May 01 01:27:35 2013 +0300
@@ -220,6 +220,9 @@
 end
 -----------------------------Events------------------------------------
 function CheckNeedToTurn(gear)
+  if youngKilled then
+    return false
+  end
   if gear == princess then
     if princessKilled ~= true then
       if (GetX(princess) > GetX(youngh) and princessFace == "Right")