Fix function name typo
This commit is contained in:
parent
18bcd519e0
commit
708af56409
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue