diff options
author | deva <deva> | 2008-06-04 11:41:46 +0000 |
---|---|---|
committer | deva <deva> | 2008-06-04 11:41:46 +0000 |
commit | dad77becc53e2f2c3b0880ee4fddd97d69099f94 (patch) | |
tree | 9b7889ef626c226632278bb71d690ced4ab823b1 /server/src/luaquerymapper.cc | |
parent | 294ed0c031072489f520c90e373b2f24aa16ed8c (diff) |
Modulized the template/course/macro system.
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; |