mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
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:
@@ -147,10 +147,10 @@ GameController::~GameController()
|
||||
{
|
||||
delete *iter;
|
||||
}
|
||||
commandInterface.reset();
|
||||
delete gameModel;
|
||||
gameView->CloseActiveWindow();
|
||||
delete gameView;
|
||||
commandInterface.reset();
|
||||
delete gameModel;
|
||||
}
|
||||
|
||||
bool GameController::HistoryRestore()
|
||||
|
Reference in New Issue
Block a user