summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-20 09:16:47 +0100
committermadmaxoft <github@xoft.cz>2014-03-20 09:16:47 +0100
commit964647a9006af475bea71272e313f3575cf4d37f (patch)
tree37a5c353a8fe34469423beadd3cd0e46d9e57eaf /src/Bindings/LuaState.cpp
parentMerge pull request #790 from mc-server/awesometnt (diff)
downloadcuberite-964647a9006af475bea71272e313f3575cf4d37f.tar
cuberite-964647a9006af475bea71272e313f3575cf4d37f.tar.gz
cuberite-964647a9006af475bea71272e313f3575cf4d37f.tar.bz2
cuberite-964647a9006af475bea71272e313f3575cf4d37f.tar.lz
cuberite-964647a9006af475bea71272e313f3575cf4d37f.tar.xz
cuberite-964647a9006af475bea71272e313f3575cf4d37f.tar.zst
cuberite-964647a9006af475bea71272e313f3575cf4d37f.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 0bb047873..47380b8a7 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -689,9 +689,10 @@ void cLuaState::Push(void * a_Ptr)
ASSERT(IsValid());
// Investigate the cause of this - what is the callstack?
- LOGWARNING("Lua engine encountered an error - attempting to push a plain pointer");
+ // One code path leading here is the OnHookExploding / OnHookExploded with exotic parameters. Need to decide what to do with them
+ LOGWARNING("Lua engine: attempting to push a plain pointer, pushing nil instead.");
+ LOGWARNING("This indicates an unimplemented part of MCS bindings");
LogStackTrace();
- ASSERT(!"A plain pointer should never be pushed on Lua stack");
lua_pushnil(m_LuaState);
m_NumCurrentFunctionArgs += 1;