Afforess
The White Wizard
Okay, some questions:
This in CvTeam. I think it is correct, but I just want to double check, this code should loop over NumBuildingInfos, correct?
Also, could my problems be the result of BULL, as you said earlier:
Other than that, I can't seem to find any other errors. I guess, if it's neither of those, I'll have to force some dummy values in and see what happens.
Code:
FAssertMsg(m_paiTechExtraBuildingHappiness==NULL, "about to leak memory, CvTeam::m_aiVictoryCountdown"); //Afforess
m_paiTechExtraBuildingHappiness = new int[GC.getNumBuildingInfos()];
for (iI = 0; iI < GC.getNumBuildingInfos(); iI++)
{
m_paiTechExtraBuildingHappiness[iI] = -1;
}
FAssertMsg(m_paiTechExtraBuildingHealth==NULL, "about to leak memory, CvTeam::m_aiVictoryCountdown");
m_paiTechExtraBuildingHealth = new int[GC.getNumBuildingInfos()];
for (iI = 0; iI < GC.getNumBuildingInfos(); iI++)
{
m_paiTechExtraBuildingHealth[iI] = -1;
}
This in CvTeam. I think it is correct, but I just want to double check, this code should loop over NumBuildingInfos, correct?
Also, could my problems be the result of BULL, as you said earlier:
Oh, if you have BULL merged into your mod you'll need to modify getBuildingAdditionalHappiness/Health(). This is the downside to keeping the arrays separate.
Other than that, I can't seem to find any other errors. I guess, if it's neither of those, I'll have to force some dummy values in and see what happens.