# HG changeset patch # User smxx # Date 1265822029 0 # Node ID befd3808c63a7b31903cdb6b155111855302dd8d # Parent 6bcf173ba9be7dfbedd348e5a0c115196a8d31d5 Engine: * Forgot another gear pointer -> gear uid change diff -r 6bcf173ba9be -r befd3808c63a hedgewars/uScript.pas --- a/hedgewars/uScript.pas Wed Feb 10 15:42:00 2010 +0000 +++ b/hedgewars/uScript.pas Wed Feb 10 17:13:49 2010 +0000 @@ -209,8 +209,7 @@ begin ParseCommand('addhh ' + lua_tostring(L, 2) + ' ' + lua_tostring(L, 3) + ' ' + lua_tostring(L, 1), true); ParseCommand('hat ' + lua_tostring(L, 4), true); - WriteLnToConsole('last hog: ' + inttostr(LongInt(CurrentHedgehog))); - lua_pushinteger(L, LongInt(CurrentHedgehog^.Gear)); + lua_pushinteger(L, CurrentHedgehog^.Gear^.uid); end; lc_addhog:= 1; end;