fix internal function name
authorsheepluva
Wed, 02 Sep 2015 16:58:31 +0200
changeset 11066 f10a4bdfa0f4
parent 11065 dce587dfed4f
child 11067 c632b47b8ff0
fix internal function name
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Wed Sep 02 05:59:21 2015 +0200
+++ b/hedgewars/uScript.pas	Wed Sep 02 16:58:31 2015 +0200
@@ -2492,7 +2492,7 @@
     lc_setwaterline:= 0
 end;
 
-function lc_setaihintsongear(L : Plua_State) : LongInt; Cdecl;
+function lc_setgearaihints(L : Plua_State) : LongInt; Cdecl;
 var gear: PGear;
 begin
     if CheckLuaParamCount(L, 2, 'SetAIHintOnGear', 'gearUid, aiHints') then
@@ -2501,7 +2501,7 @@
         if gear <> nil then
             gear^.aihints:= lua_tointeger(L, 2);
         end;
-    lc_setaihintsongear:= 0
+    lc_setgearaihints:= 0
 end;
 
 
@@ -3330,7 +3330,7 @@
 lua_register(luaState, _P'AddPoint', @lc_addPoint);
 lua_register(luaState, _P'FlushPoints', @lc_flushPoints);
 
-lua_register(luaState, _P'SetGearAIHints', @lc_setaihintsongear);
+lua_register(luaState, _P'SetGearAIHints', @lc_setgearaihints);
 lua_register(luaState, _P'HedgewarsScriptLoad', @lc_hedgewarsscriptload);
 lua_register(luaState, _P'DeclareAchievement', @lc_declareachievement);