make HeaderBar read block stock and expansion cost from the simulation

This commit is contained in:
2026-08-03 21:04:43 +02:00
parent 932b57720c
commit 594c3b93c5
3 changed files with 27 additions and 19 deletions

View File

@@ -47,7 +47,7 @@ MainWindow::MainWindow(Simulation* sim, const std::string& configDir,
const std::string itemsIconDir = QDir::cleanPath(
QString::fromStdString(m_configDir) + "/../icons/items").toStdString();
m_headerBar = new HeaderBar(&sim->getConfig(), itemsIconDir, this);
m_headerBar = new HeaderBar(sim, &sim->getConfig(), itemsIconDir, this);
m_gameWorldView = new GameWorldView(sim, &sim->getConfig(), &m_visuals, m_configDir,
m_replay.get(), this);