fix seteffect documentation, lua wiki misled me there
authorsheepluva
Tue, 14 Jan 2014 11:45:52 +0100
changeset 9987 8f07b47a641b
parent 9985 42cd42e44c9a
child 9988 317d46a2afd2
fix seteffect documentation, lua wiki misled me there
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Tue Jan 14 12:44:29 2014 +0400
+++ b/hedgewars/uScript.pas	Tue Jan 14 11:45:52 2014 +0100
@@ -1197,7 +1197,7 @@
 var gear: PGear;
 begin
     if lua_gettop(L) <> 3 then
-        LuaParameterCountError('SetEffect', 'gearUid, effect, enabled', lua_gettop(L))
+        LuaParameterCountError('SetEffect', 'gearUid, effect, effectState', lua_gettop(L))
     else begin
         gear := GearByUID(lua_tointeger(L, 1));
         if (gear <> nil) and (gear^.Hedgehog <> nil) then