diff --git a/world/src/site/economy/mod.rs b/world/src/site/economy/mod.rs index 60d900f160..fc6aa5b199 100644 --- a/world/src/site/economy/mod.rs +++ b/world/src/site/economy/mod.rs @@ -1421,11 +1421,20 @@ fn direct_use_goods() -> &'static [GoodIndex] { &*DIRECT_USE } -#[derive(Default)] pub struct GraphInfo { dummy: Economy, } +impl Default for GraphInfo { + fn default() -> Self { + let mut dummy = Economy::default(); + // avoid economy of scale + dummy.pop = 0.0; + dummy.labors.iter_mut().for_each(|l| *l.1 = 0.0); + Self { dummy } + } +} + impl GraphInfo { pub fn get_orders(&self) -> &'static LaborMap> { self.dummy.get_orders() }