Skip to content

Commit 7651dc7

Browse files
author
Bytekeeper
committed
Fixed target position returning the same as getOrderTargetPosition (Now returns same as BWAPI: https://github.com/bwapi/bwapi/blob/456ad612abc84da4103162ba0bf8ec4f053a4b1d/bwapi/Shared/UnitShared.cpp#L285 )
1 parent f6f614f commit 7651dc7

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
@@ -1001,7 +1001,7 @@ public Position getTargetPosition() {
10011001
if (game.isLatComEnabled() && self().targetPositionX.valid(game.getFrameCount())) {
10021002
return new Position(self().targetPositionX.get(), self().targetPositionY.get());
10031003
}
1004-
return new Position(unitData.getOrderTargetPositionX(), unitData.getOrderTargetPositionY());
1004+
return new Position(unitData.getTargetPositionX(), unitData.getTargetPositionY());
10051005
}
10061006

10071007
/**

0 commit comments

Comments
 (0)