diff --git a/src/lua/LuaObject.h b/src/lua/LuaObject.h index 2223772002e..4017716f458 100644 --- a/src/lua/LuaObject.h +++ b/src/lua/LuaObject.h @@ -429,14 +429,14 @@ template void pi_lua_generic_pull(lua_State *l, int index, T *&out) { assert(l == Lua::manager->GetLuaState()); - out = LuaObject::CheckFromLua(index); + out = LuaObject::type>::CheckFromLua(index); } template bool pi_lua_strict_pull(lua_State *l, int index, T *&out) { assert(l == Lua::manager->GetLuaState()); - out = LuaObject::GetFromLua(index); + out = LuaObject::type>::GetFromLua(index); return out != 0; } @@ -445,7 +445,7 @@ void pi_lua_generic_push(lua_State *l, T *value) { assert(l == Lua::manager->GetLuaState()); if (value) - LuaObject::PushToLua(value); + LuaObject::type>::PushToLua(value); else lua_pushnil(l); }