Skip to content

Commit

Permalink
Fix function name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 23, 2016
1 parent 18bcd51 commit 708af56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/scripting/lua_api.cpp
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/scripting/lua_api.hpp
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 708af56

Please sign in to comment.