diff options
| -rw-r--r-- | src/cat/LegacyLuaAPI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index c8f02d1..2b7125a 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -1871,7 +1871,7 @@ int luatpt_heat(lua_State* l) heatstate = luaL_optint(l, 1, -1); if (heatstate == -1) { - lua_pushinteger(l, luacon_sim->legacy_enable); + lua_pushinteger(l, !luacon_sim->legacy_enable); return 1; } luacon_sim->legacy_enable = (heatstate==1?0:1); |
