We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5862bc4 commit d1a6767Copy full SHA for d1a6767
src/main/java/bwapi/CommandTemp.java
@@ -69,7 +69,7 @@ void execute(boolean isCurrentFrame) {
69
}
70
71
// Existence test
72
- if (!unit.exists()) {
+ if (unit == null || !unit.exists()) {
73
return;
74
75
@@ -100,7 +100,7 @@ void execute(boolean isCurrentFrame) {
100
101
// RLF
102
case Attack_Unit:
103
- if (target != null || !target.exists() || !unit.getType().canAttack())
+ if (target == null || !target.exists() || !unit.getType().canAttack())
104
105
unit.self().order.set(Order.AttackUnit, frame);
106
unit.self().target.set(getUnitID(target), frame);
0 commit comments