diff --git a/Shared/mods/deathmatch/logic/lua/LuaBasic.h b/Shared/mods/deathmatch/logic/lua/LuaBasic.h index 1825d3f91cd..6838e9b7271 100644 --- a/Shared/mods/deathmatch/logic/lua/LuaBasic.h +++ b/Shared/mods/deathmatch/logic/lua/LuaBasic.h @@ -127,6 +127,20 @@ namespace lua return 1; } + template + int Push(lua_State* L, const std::shared_ptr& ptr) + { + lua_pushelement(L, ptr.get()); + return 1; + } + + template + int Push(lua_State* L, const std::unique_ptr& ptr) + { + lua_pushelement(L, ptr.get()); + return 1; + } + /*****************************************************************\ * The functions below may depend on each other, so they need to be * forward declared.