changeset 6924 | 57b66ee3bff3 |
parent 6828 | 6a5d33bff0b0 |
child 6982 | 8d41d22a291d |
--- a/hedgewars/uScript.pas Tue Apr 24 23:33:39 2012 +0400 +++ b/hedgewars/uScript.pas Tue Apr 24 23:50:40 2012 +0400 @@ -1023,7 +1023,7 @@ if lua_gettop(L) = 2 then AddAmmo(gear^.Hedgehog^, TAmmoType(lua_tointeger(L, 2))) else - AddAmmo(gear^.Hedgehog^, TAmmoType(lua_tointeger(L, 2)), lua_tointeger(L, 3)) + SetAmmo(gear^.Hedgehog^, TAmmoType(lua_tointeger(L, 2)), lua_tointeger(L, 3)) end else LuaError('Lua: Wrong number of parameters passed to AddAmmo!'); lc_addammo:= 0