# HG changeset patch # User Periklis Ntanasis # Date 1367360855 -10800 # Node ID 63ecf5320439099bfb423c4031e16098789b5e28 # Parent 5a587c7169f278594cbfbfb1601ce7ac15ec9ee8 fix nil comparison error, see issues 470 and 601 diff -r 5a587c7169f2 -r 63ecf5320439 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")