Browse Source

Destroy and remove effect before removing from array

tags/v0.10.6^2
kckckc 2 years ago
parent
commit
6795f367fd
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/server/components/effects.js

+ 4
- 4
src/server/components/effects.js View File

@@ -313,13 +313,13 @@ module.exports = {
e.update();

if (e.destroyed) {
effects.splice(i, 1);
eLen--;
i--;

this.destroyEffect(e);

this.syncRemove(e.id);

effects.splice(i, 1);
eLen--;
i--;
}
}



Loading…
Cancel
Save