From 65f4f2f0f2c1d0decaed2457cb06b8bc22fcbf97 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Mon, 5 Jul 2010 18:28:19 +0000 Subject: [PATCH] Fix houses increasing pop limit before construction has finished This was SVN commit r7698. --- source/simulation2/components/CCmpTemplateManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/simulation2/components/CCmpTemplateManager.cpp b/source/simulation2/components/CCmpTemplateManager.cpp index 056cc16201..a0d1889835 100644 --- a/source/simulation2/components/CCmpTemplateManager.cpp +++ b/source/simulation2/components/CCmpTemplateManager.cpp @@ -437,5 +437,9 @@ void CCmpTemplateManager::CopyFoundationSubset(CParamNode& out, const CParamNode // Initialise health to 1 CParamNode::LoadXMLString(out, "1"); + + // Don't provide population bonuses yet (but still do take up population cost) + if (out.GetChild("Entity").GetChild("Cost").IsOk()) + CParamNode::LoadXMLString(out, ""); }