Restore the original warning, I guess.

Took 3 minutes
This commit is contained in:
Lukas Brübach 2025-09-26 21:12:08 +02:00
parent 3585801150
commit bb0fe0144e

View file

@ -41,7 +41,9 @@ GameScene::~GameScene()
{
delete animationTimer;
// Zone views are deleted asynchronously.
// DO NOT call clearViews() here
// clearViews calls close() on the zoneViews, which sends signals; sending signals in destructors leads to segfaults
// deleteLater() deletes the zoneView without allowing it to send signals
for (const auto &zoneView : zoneViews) {
zoneView->deleteLater();
}