Skip to content

Commit be620df

Browse files
committed
1 parent 77e8205 commit be620df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwapi/Game.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ else if (!builder.getType().isFlyingBuilding() && type != Zerg_Nydus_Canal && !t
585585
if (type.isResourceDepot()) {
586586
for (final Unit m : getStaticMinerals()) {
587587
final TilePosition tp = m.getInitialTilePosition();
588-
if ( (isVisible(tp) || isVisible(tp.x + 1, tp.y)) && !m.isVisible()) {
588+
if ( (isVisible(tp) || isVisible(tp.x + 1, tp.y)) && !m.exists()) {
589589
continue; // tile position is visible, but mineral is not => mineral does not exist
590590
}
591591
if (tp.x > lt.x - 5 &&

0 commit comments

Comments
 (0)