summaryrefslogtreecommitdiff
path: root/src/cat
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-08-30 02:44:38 (GMT)
committer jacob1 <jfu614@gmail.com>2013-08-30 02:44:38 (GMT)
commitfd586d167f8c3d1e38af36d47e7b048b61c983ce (patch)
tree5279b55cdbe5a3ba0e5894b07822b9323b3f62c0 /src/cat
parent2cbee180a1e8e8fd08d9ecca82c86d8f689d1fc6 (diff)
downloadpowder-fd586d167f8c3d1e38af36d47e7b048b61c983ce.zip
powder-fd586d167f8c3d1e38af36d47e7b048b61c983ce.tar.gz
fix bug where when sparks were reset, ctype wasn't
Diffstat (limited to 'src/cat')
-rw-r--r--src/cat/LegacyLuaAPI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp
index 293d45e..9c32ad5 100644
--- a/src/cat/LegacyLuaAPI.cpp
+++ b/src/cat/LegacyLuaAPI.cpp
@@ -1100,7 +1100,7 @@ int luatpt_reset_spark(lua_State* l)
if (luacon_sim->parts[i].ctype >= 0 && luacon_sim->parts[i].ctype < PT_NUM)
{
luacon_sim->parts[i].type = luacon_sim->parts[i].ctype;
- luacon_sim->parts[i].life = 0;
+ luacon_sim->parts[i].life = luacon_sim->parts[i].ctype = 0;
}
else
luacon_sim->kill_part(i);