Lua API: fix incorrect error message. thanks to TheAnachron and rhino for pointing this out
authorsheepluva
Sun, 04 Sep 2016 21:23:00 +0200
changeset 11844 a784866c91ad
parent 11840 24f309d75da8
child 11845 25d36d8935cc
Lua API: fix incorrect error message. thanks to TheAnachron and rhino for pointing this out
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