From 4f60eaabcae03c77958585b4b4e843f479955aae Mon Sep 17 00:00:00 2001 From: Max Luchterhand <52720531+maxluchterhand1@users.noreply.github.com> Date: Sat, 21 Mar 2020 17:00:26 +0100 Subject: Wrong overload of function push() got called when pushing a cEntity*. (#4512) * Now having two funcs, Push(cEntity* ..) and Push(const cEntity* ...). For now, the const function just casts away the const qualifier and passes to the other. Co-authored-by: mluchterhand --- src/Bindings/LuaState.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Bindings/LuaState.h') diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index 362f16e21..3220992cb 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -624,6 +624,7 @@ public: // Push a simple value onto the stack (keep alpha-sorted): void Push(bool a_Value); void Push(cEntity * a_Entity); + void Push(const cEntity * a_Entity); void Push(cLuaServerHandle * a_ServerHandle); void Push(cLuaTCPLink * a_TCPLink); void Push(cLuaUDPEndpoint * a_UDPEndpoint); -- cgit v1.2.3