Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
axatin committed Dec 12, 2024
1 parent a4ff508 commit d531f3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CvGameCoreDLL_Expansion2/CvBuildingClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,13 @@ CvBuildingEntry::CvBuildingEntry(void):
m_piDomainProductionModifier(NULL),
m_piPrereqNumOfBuildingClass(NULL),
m_piFlavorValue(NULL),
m_viLocalResourceAnds(),
m_viLocalResourceOrs(),
#if defined(MOD_BALANCE_CORE_RESOURCE_MONOPOLIES)
m_piLocalFeatureOrs(NULL),
m_piLocalFeatureAnds(NULL),
m_viResourceMonopolyAnds(),
m_viResourceMonopolyOrs(),
m_iGPRateModifierPerXFranchises(0),
m_piResourceQuantityPerXFranchises(NULL),
m_piYieldPerFranchise(NULL),
Expand Down Expand Up @@ -983,7 +987,7 @@ bool CvBuildingEntry::CacheResults(Database::Results& kResults, CvDatabaseUtilit
kUtility.SetYields(m_piYieldFromPillageGlobalPlayer, "Building_YieldFromPillageGlobalPlayer", "BuildingType", szBuildingType);
kUtility.SetYields(m_piYieldFromGoldenAgeStart, "Building_YieldFromGoldenAgeStart", "BuildingType", szBuildingType);
kUtility.SetYields(m_piYieldChangePerGoldenAge, "Building_YieldChangesPerGoldenAge", "BuildingType", szBuildingType);
kUtility.PopulateArrayByValue(m_piYieldChangePerGoldenAgeCap, "Yields", "Building_YieldChangesPerGoldenAge", "YieldType", "BuildingType", szBuildingType, "YieldCap", 0);
kUtility.PopulateArrayByValue(m_piYieldChangePerGoldenAgeCap, "Yields", "Building_YieldChangesPerGoldenAge", "YieldType", "BuildingType", szBuildingType, "YieldCap");
kUtility.SetYields(m_piGoldenAgeYieldMod, "Building_GoldenAgeYieldMod", "BuildingType", szBuildingType);
kUtility.SetYields(m_piYieldFromWLTKD, "Building_WLTKDYieldMod", "BuildingType", szBuildingType);
kUtility.SetYields(m_piYieldFromGPExpend, "Building_YieldFromGPExpend", "BuildingType", szBuildingType);
Expand Down
2 changes: 2 additions & 0 deletions CvGameCoreDLL_Expansion2/CvCorporationClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ CvCorporationEntry::CvCorporationEntry(void):
m_iBaseSpreadChance(0),
m_iTourismMod(0),
m_bTradeRoutesInvulnerable(false),
m_viResourceMonopolyAnds(),
m_viResourceMonopolyOrs(),
m_piNumFreeResource(NULL),
m_piTradeRouteMod(NULL),
m_piTradeRouteCityMod(NULL),
Expand Down

0 comments on commit d531f3f

Please sign in to comment.