hedgewars/uScript.pas
changeset 13036 434bcdd9562c
parent 13020 d1e7f2420f00
child 13037 3718637c14be
--- a/hedgewars/uScript.pas	Mon Feb 19 17:03:59 2018 +0100
+++ b/hedgewars/uScript.pas	Tue Feb 20 14:03:46 2018 +0100
@@ -2869,7 +2869,7 @@
 function lc_setgearaihints(L : Plua_State) : LongInt; Cdecl;
 var gear: PGear;
 begin
-    if CheckLuaParamCount(L, 2, 'SetAIHintOnGear', 'gearUid, aiHints') then
+    if CheckLuaParamCount(L, 2, 'SetGearAIHints', 'gearUid, aiHints') then
         begin
         gear:= GearByUID(Trunc(lua_tonumber(L, 1)));
         if gear <> nil then