Skip to content

Commit 7d8e52c

Browse files
committed
inverted data & save in backing up & restoring tiles for buildability
1 parent 386b0dd commit 7d8e52c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/bwapi/BuildingPlacer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,11 @@ boolean hasValidSpace() {
447447
}
448448

449449
void backup() {
450-
System.arraycopy(save, 0, data, 0, save.length);
450+
System.arraycopy(data, 0, save, 0, data.length);
451451
}
452452

453453
void restore() {
454-
System.arraycopy(data, 0, save, 0, data.length);
454+
System.arraycopy(save, 0, data, 0, save.length);
455455
}
456456

457457
void restoreIfInvalid() {

0 commit comments

Comments
 (0)