--- a/hedgewars/uScript.pas Fri Aug 23 16:02:08 2013 +0400
+++ b/hedgewars/uScript.pas Sat Aug 24 00:13:15 2013 +0400
@@ -1899,10 +1899,10 @@
function lc_declareachievement(L : Plua_State) : LongInt; Cdecl;
var gear: PGear;
begin
- if lua_gettop(L) <> 3 then
+ if lua_gettop(L) <> 4 then
LuaError('Lua: Wrong number of parameters passed to DeclareAchievement!')
else
- declareAchievement(lua_tostring(L, 1), lua_tostring(L, 2), lua_tointeger(L, 3));
+ declareAchievement(lua_tostring(L, 1), lua_tostring(L, 2), lua_tostring(L, 3), lua_tointeger(L, 4));
lc_declareachievement:= 0
end;
///////////////////