Skip to content

Commit 59d0ef4

Browse files
committed
use cast for unit
1 parent 1233d4f commit 59d0ef4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/bwapi/Unit.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5956,8 +5956,7 @@ public boolean canUseTech(TechType tech, Unit target) {
59565956
}
59575957

59585958
public boolean canUseTech(TechType tech) {
5959-
Unit u = null;
5960-
return canUseTech(tech, u);
5959+
return canUseTech(tech, (Unit) null);
59615960
}
59625961

59635962
/**

0 commit comments

Comments
 (0)