We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 943e784 commit 74a1532Copy full SHA for 74a1532
1 file changed
src/main/java/bwapi/Unit.java
@@ -53,7 +53,6 @@ public class Unit implements Comparable<Unit> {
53
private final Position initialPosition;
54
private final TilePosition initialTilePosition;
55
private final int id;
56
- private final int replayID;
57
// variable
58
private Position position;
59
private int lastPositionUpdate = -1;
@@ -83,7 +82,6 @@ UnitSelf self() {
83
82
initialTilePosition = getTilePosition();
84
85
this.id = id;
86
- replayID = unitData.getReplayID();
87
}
88
89
private static boolean reallyGatheringGas(final Unit targ, final Player player) {
@@ -136,7 +134,7 @@ public boolean exists() {
136
134
* @see #getID
137
135
*/
138
public int getReplayID() {
139
- return replayID;
+ return unitData.getReplayID();
140
141
142
/**
0 commit comments