mirror of https://github.com/FreeCol/freecol.git
Fixes a NPE in the minimap when loading a new game.
This commit is contained in:
parent
7a9607ec13
commit
e66d3f5d8c
|
@ -390,6 +390,7 @@ public final class MiniMap extends JPanel implements MouseInputListener {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue