diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-26 22:36:17 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-26 22:36:17 (GMT) |
| commit | 39acce4502bdfad7bb1d59cd3dcbe335e8b690a6 (patch) | |
| tree | fcc8dc533bd76a84e434231a4c127e557da79dbe | |
| parent | bfc1cf99cabd5b75f70a8de39cc4b00c408fc6b8 (diff) | |
| download | powder-39acce4502bdfad7bb1d59cd3dcbe335e8b690a6.zip powder-39acce4502bdfad7bb1d59cd3dcbe335e8b690a6.tar.gz | |
fix tpt.heat return value
| -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); |
