From 708af564095390490048d04fbd40709cbcda9185 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 23 Feb 2016 13:47:49 -0500 Subject: [PATCH] Fix function name typo --- src/scripting/game_lua_kernel.cpp | 2 +- src/scripting/lua_api.cpp | 2 +- src/scripting/lua_api.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting/game_lua_kernel.cpp b/src/scripting/game_lua_kernel.cpp index f863c7ef9e10..088602dcd84e 100644 --- a/src/scripting/game_lua_kernel.cpp +++ b/src/scripting/game_lua_kernel.cpp @@ -4772,7 +4772,7 @@ void game_lua_kernel::apply_effect(const std::string& name, unit& u, const confi return; } // Stack: effect_func - lua_unit* lu = LuaW_pushlocalunit(L, u); + lua_unit* lu = luaW_pushlocalunit(L, u); // Stack: effect_func, unit lua_pushvalue(L, -2); // Stack: effect_func, unit, effect_func diff --git a/src/scripting/lua_api.cpp b/src/scripting/lua_api.cpp index d427089d4475..9c74fbf033bb 100644 --- a/src/scripting/lua_api.cpp +++ b/src/scripting/lua_api.cpp @@ -196,7 +196,7 @@ unit& luaW_checkunit(lua_State *L, int index, bool only_on_map) return *u; } -lua_unit* LuaW_pushlocalunit(lua_State *L, unit& u) +lua_unit* luaW_pushlocalunit(lua_State *L, unit& u) { lua_unit* res = new(lua_newuserdata(L, sizeof(lua_unit))) lua_unit(u); lua_pushlightuserdata(L, getunitKey); diff --git a/src/scripting/lua_api.hpp b/src/scripting/lua_api.hpp index 868086366be0..9d616f9b1bc4 100644 --- a/src/scripting/lua_api.hpp +++ b/src/scripting/lua_api.hpp @@ -45,7 +45,7 @@ bool luaW_pcall(lua_State *L, int nArgs, int nRets, bool allow_wml_error = false */ unit& luaW_checkunit(lua_State *L, int index, bool only_on_map = false); class lua_unit; -lua_unit* LuaW_pushlocalunit(lua_State *L, unit& u); +lua_unit* luaW_pushlocalunit(lua_State *L, unit& u); struct map_location; /**