hedgewars/uScript.pas
branch0.9.19
changeset 9138 9e94a9bc8c7e
parent 9135 151c8e553de2
--- 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;
 ///////////////////