Afforess
The White Wizard
Oops, wasn't paying close enough of attention, I had just done a search for BuildingInfo and copied the first line it gave me!
In your post you called the new function "NonCopyDefaultsReadPass2" which is not the proper name. So potentially that is your issue. You posted a CNDrp2 earlier though, and it was correct in there. Did you declare it in your CvInfos.h? Not sure if a virtual will yell at you for doing that wrong or not.
I probably just remembered the name slightly wrong, while typing on the forums. It isn't exactly a name that sticks with you...
Here's my CvInfos.h but I doubt it's wrong...
Code:
bool readPass2(CvXMLLoadUtility* pXML);
void copyNonDefaultsReadPass2(CvBuildingInfo* pClassInfo = NULL);
I really have problems seeing bold on the forum for some reason. Was the error line:
aInfos[iIndex]->copyNonDefaultsReadPass2(pClassInfo);
Well actually, the line right below it... Bolding with code doesn't show very well here, it's not just you.