From 47c4da2981af39bfd802b1651f7908b62243c655 Mon Sep 17 00:00:00 2001 From: Pirulax Date: Wed, 30 Dec 2020 01:49:48 +0100 Subject: [PATCH] Fixup ecabcfbb6ca (Add back functions deleted by accident) --- Shared/mods/deathmatch/logic/lua/LuaBasic.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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.