diff options
Diffstat (limited to 'server/src/luaquerymapper.cc')
-rw-r--r-- | server/src/luaquerymapper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/luaquerymapper.cc b/server/src/luaquerymapper.cc index 2de1d3c..df25778 100644 --- a/server/src/luaquerymapper.cc +++ b/server/src/luaquerymapper.cc @@ -115,7 +115,7 @@ Value LUAQueryMapper::map(const std::string &mapper) lua_pcall(L, 0, LUA_MULTRET, 0); // Check if app messed up the stack. - if(lua_gettop(L) != clean_top) { + if(lua_gettop(L) != clean_top + 2) { printf("LUA mapper messed up the stack (wrong number of return values)!\n"); lua_pop(L, lua_gettop(L) - clean_top); Value v; |