fix issue where building stats don't update while the building is kept selected

This commit is contained in:
2026-04-20 21:52:39 +02:00
parent df3ef46367
commit 507b5d1e3a
3 changed files with 24 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ MainWindow::MainWindow(Simulation* sim, const GameConfig* config,
connect(m_gameWorldView, SIGNAL(stateUpdated(Tick, int, double)),
this, SLOT(onStateUpdated(Tick, int, double))); // for affordability
connect(m_gameWorldView, SIGNAL(stateUpdated(Tick, int, double)),
m_selectedBuildingPanel, SLOT(onStateUpdated(Tick, int, double)));
connect(m_gameWorldView, SIGNAL(gameOver()),
this, SLOT(onGameOver()));