EmperorFool
Deity
The next thing to test is that the bonus arrays are not NULL:
Given how you initialize the arrays, I don't think this is possible, but we need to remove it as a possibility.
Code:
void CvCity::setBuildingBonusStockChange(BuildingClassTypes eBuildingClass, BonusTypes eBonus, int iValue)
{
if (m_aaiBuildingBonusStockChange != NULL)
{
[B] if (m_aaiBuildingBonusStockChange[(int) eBuildingClass] != NULL)
{[/B]
m_aaiBuildingBonusStockChange[(int) eBuildingClass][(int) eBonus] = iValue;
[B] }[/B]
}
}
Given how you initialize the arrays, I don't think this is possible, but we need to remove it as a possibility.