Browse Source

bug: Fixed a crash that happens when dying with an aura active

tags/v0.10.6^2
Shaun 2 years ago
parent
commit
1c6d7a5446
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/server/components/effects.js

+ 6
- 1
src/server/components/effects.js View File

@@ -232,7 +232,12 @@ module.exports = {
},

removeEffect: function (id) {
let effect = this.effects.find(e => e.id === id);
const effect = this.effects.find(e => e.id === id);

//It's possible that something else has removed the effect
if (!effect)
return;

this.destroyEffect(effect);

this.syncRemove(effect.id);


Loading…
Cancel
Save