bugfix(shell): Prevent menu crashing by avoiding initializing layouts during teardown - #3158
Conversation
6c825d4 to
024478e
Compare
PR Summary by QodoFix Shell teardown by suppressing layout init on immediate pop
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
Fixes #2777. Shell teardown now suppresses initialization of newly uncovered layouts while retaining each layout’s shutdown callback. This prevents the full-screen save/load menu from accessing GameState after it has been destroyed when closing the game after loading a save. I reproduced the issue with a Zero Hour skirmish save, where the process exited with code 2816 before the change and 0 afterward.