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 {
} }
public void endEffect() { public void endEffect() {
if (this.eb == null) if (this.eb == null || this.power == null)
return; return;
this.eb.endEffect(this.source, this.target, this.trains, this.power, this); this.eb.endEffect(this.source, this.target, this.trains, this.power, this);
} }

Loading…
Cancel
Save