Files
OpenFrontIO/src/client/graphics/layers
VariableVince 5e2930075a Fix: console error stemming from WinModal (#3221)
## Description:

Fix console error triggered by this.game being undefined but WinModal
render() still tries to get this.game.myPlayer?.

There is no guard needed in tick() or show() (the latter only called by
tick). Because when this.game is undefined tick() won't be called
anyway.

![undefined in WinModal reading myPlayer in console at game
start](https://github.com/user-attachments/assets/0c399516-f6a1-418d-916b-2633413eb241)

![undefined in WinModal reading myPlayer in console at game start
B](https://github.com/user-attachments/assets/28986383-596a-4a64-bc26-b00f28828bb7)

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

tryout33
2026-02-16 11:19:06 -08:00
..
2026-02-16 18:00:25 +00:00
2026-02-16 18:00:25 +00:00
2026-02-09 13:37:27 -08:00
2026-02-16 18:00:25 +00:00
2026-02-14 19:48:43 -08:00
2026-02-16 11:08:11 -08:00
2026-02-14 19:48:43 -08:00
2026-02-09 12:54:34 -08:00
2026-02-16 18:00:25 +00:00
2026-02-14 19:48:43 -08:00
2026-02-14 19:48:43 -08:00
2026-02-14 19:48:43 -08:00
2026-02-14 19:48:43 -08:00
2025-12-09 16:12:00 -08:00