aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/GameManager.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-06-08 01:17:25 +0200
committer hop311 <hop3114@gmail.com>2024-06-08 01:17:25 +0200
commitc0ba822ee46551a40ad6b43e8f56b80e27ae35b5 (patch)
treeebc9c03b5bd0a6b11068ac37aca302f6ceb24a18 /src/openvic-simulation/GameManager.cpp
parent1198a780916e65cae048dd3478f614c1d18db846 (diff)
Add GoodInstancegood-instance
Diffstat (limited to 'src/openvic-simulation/GameManager.cpp')
-rw-r--r--src/openvic-simulation/GameManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/GameManager.cpp b/src/openvic-simulation/GameManager.cpp
index fff806c..3ede804 100644
--- a/src/openvic-simulation/GameManager.cpp
+++ b/src/openvic-simulation/GameManager.cpp
@@ -44,8 +44,8 @@ bool GameManager::reset() {
session_start = time(nullptr);
simulation_clock.reset();
today = {};
- economy_manager.get_good_manager().reset_to_defaults();
- bool ret = map_instance.reset(economy_manager.get_building_type_manager());
+ bool ret = economy_manager.setup_good_instances();
+ ret &= map_instance.reset(economy_manager.get_building_type_manager());
set_gamestate_needs_update();
return ret;
}