hedgewars/uScript.pas
changeset 7721 2b1ad418ba39
parent 7650 ffa26ebdf8ae
child 7726 1137406bce12
--- a/hedgewars/uScript.pas	Mon Oct 01 00:31:38 2012 +0400
+++ b/hedgewars/uScript.pas	Mon Oct 01 12:01:39 2012 +0400
@@ -1708,7 +1708,7 @@
           i := 0;
           while (i < hiddenHedgehogsNumber) do
             begin
-            if hiddenHedgehogs[i]^.gearHidden^.uid = lua_tointeger(L, 1) then
+            if hiddenHedgehogs[i]^.gearHidden^.uid = LongWord(lua_tointeger(L, 1)) then
               begin
                 hog := hiddenHedgehogs[i];
                 RestoreHog(hog);