Fixed issue with fireworks not firing properly.

This commit is contained in:
Cekis
2017-01-30 03:36:41 +00:00
parent 1b310b2418
commit fced36dcf7
+1 -1
View File
@@ -28,7 +28,7 @@ public class show extends script.base_script
{
int eventCount = getCount(self);
Vector show_fx = getResizeableStringArrayObjVar(self, firework.VAR_SHOW_FX);
if (eventCount != 0 && (show_fx == null || show_fx.size() != eventCount))
if(show_fx == null || (eventCount > 0 && show_fx.size() != eventCount))
{
setCount(self, 0);
removeObjVar(self, firework.VAR_SHOW_FX);