joulupunikki / Phoenix

Java clone/remake/patch of the game Emperor of the Fading Suns
https://joulupunikki.github.io/Phoenix/
37 stars 14 forks source link

City Info crash #96

Closed joulupunikki closed 7 years ago

joulupunikki commented 7 years ago

Clicking City Info will crash, Live multiplayer, alpha test 1 Year 1 Hazat turn, always reproducible with this specific game, does not happen if a new multiplayer is started and Li Halan turn is just skipped.

Edit: Reproducible with new game if Phoenix is restarted before Year 1 Hazat turn is played.

Seems in Gui.setGameReferences City Info Window game ref is not set.

Thread[AWT-EventQueue-0,6,main]
java.lang.ArrayIndexOutOfBoundsException: -1
    at game.Hex.isSpotted(Hex.java:97)
    at gui.GlobeMap.renderMapItems(GlobeMap.java:120)
    at gui.GlobeMap.renderGlobeMap(GlobeMap.java:81)
    at gui.GlobeMap.paintComponent(GlobeMap.java:75) ...