changeset 9177 | d5e98b81e135 |
parent 9176 | c21c88dca14c |
child 9179 | 7ce9f68d28dc |
--- a/hedgewars/uScript.pas Sat Jun 08 23:54:44 2013 +0300 +++ b/hedgewars/uScript.pas Sun Jun 09 01:18:58 2013 +0300 @@ -1294,7 +1294,7 @@ //TODO print better error messages statInfo := TStatInfoType(GetEnumValue(TypeInfo(TStatInfoType),lua_tostring(L, 1))); if (lua_gettop(L) <> 2) and ((statInfo <> siPlayerKills) - or (statInfo <> siClanHealth)) then + and (statInfo <> siClanHealth)) then begin LuaError('Lua: Wrong number of parameters passed to SendStat!'); end