Skip to content

Commit 74a1532

Browse files
committed
'fix' replayID
1 parent 943e784 commit 74a1532

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/bwapi/Unit.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public class Unit implements Comparable<Unit> {
5353
private final Position initialPosition;
5454
private final TilePosition initialTilePosition;
5555
private final int id;
56-
private final int replayID;
5756
// variable
5857
private Position position;
5958
private int lastPositionUpdate = -1;
@@ -83,7 +82,6 @@ UnitSelf self() {
8382
initialTilePosition = getTilePosition();
8483

8584
this.id = id;
86-
replayID = unitData.getReplayID();
8785
}
8886

8987
private static boolean reallyGatheringGas(final Unit targ, final Player player) {
@@ -136,7 +134,7 @@ public boolean exists() {
136134
* @see #getID
137135
*/
138136
public int getReplayID() {
139-
return replayID;
137+
return unitData.getReplayID();
140138
}
141139

142140
/**

0 commit comments

Comments
 (0)