Skip to content

Commit 674acf5

Browse files
author
bytekeeper
committed
Fix upgrade command using research. Thanks @bftjoe!
1 parent 623f6be commit 674acf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwapi/UnitCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static UnitCommand research(final Unit unit, final TechType tech) {
6262
}
6363

6464
public static UnitCommand upgrade(final Unit unit, final UpgradeType upgrade) {
65-
return new UnitCommand(unit, Research, null, -1, -1, upgrade.id);
65+
return new UnitCommand(unit, Upgrade, null, -1, -1, upgrade.id);
6666
}
6767

6868
public static UnitCommand setRallyPoint(final Unit unit, final Position target) {

0 commit comments

Comments
 (0)