Skip to content

Commit

Permalink
Fixes a NPE in the minimap when loading a new game.
Browse files Browse the repository at this point in the history
  • Loading branch information
stiangre committed Jan 4, 2024
1 parent 7a9607e commit e66d3f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/sf/freecol/client/gui/panel/MiniMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ public void paintEntireMinimap(Graphics graphics, int tileSize, Dimension size)
g.fill(settlementPath);
}
if (!freeColClient.isMapEditor()
&& freeColClient.getMyPlayer() != null
&& !freeColClient.getMyPlayer().canSee(tile)
&& clientOptions.getBoolean(ClientOptions.MINIMAP_TOGGLE_FOG_OF_WAR)) {
Color blackTransparent = new Color(0, 0, 0, 100);
Expand Down

0 comments on commit e66d3f5

Please sign in to comment.