--- a/hedgewars/uScript.pas Tue Aug 06 00:26:07 2013 +0400
+++ b/hedgewars/uScript.pas Sat Aug 24 00:13:15 2013 +0400
@@ -1840,10 +1840,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;
///////////////////