Fix crash on exit while there are Lua windows visible

Broken since 02b679aec3, where GameView started popping everything above itself before popping itself. The problem was that LSI would get destroyed before GameView did this, but popping Lua windows needed LSI to be alive still.
This commit is contained in:
Tamás Bálint Misius
2024-11-20 21:27:02 +01:00
parent b448622921
commit 74386631e0

View File

@@ -147,10 +147,10 @@ GameController::~GameController()
{
delete *iter;
}
commandInterface.reset();
delete gameModel;
gameView->CloseActiveWindow();
delete gameView;
commandInterface.reset();
delete gameModel;
}
bool GameController::HistoryRestore()