summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/LuaState.cpp10
-rw-r--r--src/Bindings/LuaState.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index c1e71bd5c..ad1021001 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -949,6 +949,16 @@ void cLuaState::Push(bool a_Value)
+void cLuaState::Push(const cEntity * a_Entity)
+{
+ // Once we can make Lua understand constness, this function shall receive a corresponding function body
+ Push(const_cast<cEntity * >(a_Entity));
+}
+
+
+
+
+
void cLuaState::Push(cEntity * a_Entity)
{
ASSERT(IsValid());
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);