# HG changeset patch # User sheepluva # Date 1473016980 -7200 # Node ID a784866c91ad83e411a6251132007ed4f3d9d760 # Parent 24f309d75da88fc638776e6727f640f50a5607f7 Lua API: fix incorrect error message. thanks to TheAnachron and rhino for pointing this out diff -r 24f309d75da8 -r a784866c91ad hedgewars/uScript.pas --- a/hedgewars/uScript.pas Sat Jul 09 22:40:44 2016 +0300 +++ b/hedgewars/uScript.pas Sun Sep 04 21:23:00 2016 +0200 @@ -291,7 +291,7 @@ else i:= lua_tointeger(L, i); if (i < ord(Low(THogEffect))) or (i > ord(High(THogEffect))) then begin - LuaCallError('Invalid gear type!', call, paramsyntax); + LuaCallError('Invalid effect type!', call, paramsyntax); LuaToHogEffectOrd:= -1; end else