Skip to content

Commit 685adb1

Browse files
author
Petr Holik
committed
This fixes issue with loading terran units into bunker.
1 parent b3855c0 commit 685adb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwapi/Unit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5038,7 +5038,7 @@ public boolean canLoad(Unit targetUnit, boolean checkCanTargetUnit, boolean chec
50385038
final UnitType unitThatLoadsType = unitThatLoads.getType();
50395039

50405040
if (unitThatLoadsType == Terran_Bunker) {
5041-
if (!unitThatLoadsType.isOrganic() || unitThatLoadsType.getRace() != Terran) {
5041+
if (!unitToBeLoadedType.isOrganic() || unitToBeLoadedType.getRace() != Terran) {
50425042
return false;
50435043
}
50445044
if (!unitToBeLoaded.hasPath(unitThatLoads.getPosition())) {

0 commit comments

Comments
 (0)