Chazcon
Prince
This bit is causing me some grief, I throw the first assert with an eIndex of -1 which means the unit has no UNITCOMBAT type. This will throw in both release and debug.
I have modified the unitcombat types and made changes to CIV4EventInfos.xml, CIV4PromotionInfos.xml, CIV4UnitCombatInfos.xml, and CIV4UnitIfos.xml. Also verified that all UNITCOMBAT_ types in CIV4BuildingInfos.xml are correct.
I also listed all unitcombat types in PyHelpers.py and CvAdvisorUtils.py for kicks.
All units have a correct <Combat>UNITCOMBAT_*</Combat> type or <Combat>NONE</Combat>.
I have modified the unitcombat types and made changes to CIV4EventInfos.xml, CIV4PromotionInfos.xml, CIV4UnitCombatInfos.xml, and CIV4UnitIfos.xml. Also verified that all UNITCOMBAT_ types in CIV4BuildingInfos.xml are correct.
I also listed all unitcombat types in PyHelpers.py and CvAdvisorUtils.py for kicks.
All units have a correct <Combat>UNITCOMBAT_*</Combat> type or <Combat>NONE</Combat>.
Code:
int CvCity::getUnitCombatFreeExperience(UnitCombatTypes eIndex) const
{
FAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");
FAssertMsg(eIndex < GC.getNumUnitCombatInfos(), "eIndex expected to be < GC.getNumUnitCombatInfos()");
return m_paiUnitCombatFreeExperience[eIndex];
}