diff options
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
| -rw-r--r-- | src/cat/LuaScriptInterface.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp index fb01802..df7176d 100644 --- a/src/cat/LuaScriptInterface.cpp +++ b/src/cat/LuaScriptInterface.cpp @@ -494,6 +494,7 @@ void LuaScriptInterface::initSimulationAPI() SETCONST(l, XRES); SETCONST(l, YRES); SETCONST(l, PT_NUM); + lua_pushinteger(l, 0); lua_setfield(l, -2, "NUM_PARTS"); SETCONST(l, R_TEMP); SETCONST(l, MAX_TEMP); SETCONST(l, MIN_TEMP); |
