Browse Source

added null check for endEffect

lakebane-easy
FatBoy-DOTC 2 weeks ago
parent
commit
af9945f9db
  1. 2
      src/engine/jobs/AbstractEffectJob.java

2
src/engine/jobs/AbstractEffectJob.java

@ -117,7 +117,7 @@ public abstract class AbstractEffectJob extends AbstractScheduleJob { @@ -117,7 +117,7 @@ public abstract class AbstractEffectJob extends AbstractScheduleJob {
}
public void endEffect() {
if (this.eb == null)
if (this.eb == null || this.power == null)
return;
this.eb.endEffect(this.source, this.target, this.trains, this.power, this);
}

Loading…
Cancel
Save