clear all players when closing game tab (#6828)

this prevents issues caused by items in play when using the player
destructor in the wrong order
This commit is contained in:
ebbit1q 2026-04-21 08:09:20 +02:00 committed by GitHub
parent 6ab947418c
commit 501c4b96d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -259,6 +259,9 @@ TabGame::~TabGame()
if (replayManager) {
delete replayManager->replay;
}
for (auto &player : game->getPlayerManager()->getPlayers()) {
player->clear();
}
}
void TabGame::updatePlayerListDockTitle()