Problem with CvXMLLoadUtility::SetGlobalClassInfo

dyerbods

Chieftain
Joined
Jan 15, 2006
Messages
35
Location
Ringwood, UK
There is a problem in the method CvXMLLoadUtility::SetGlobalClassInfo in CvXMLLoadUtilitySet.cpp under BtS 3.17.

If the last element in a multi element XML file, such as Assets/XML/Interface/CIV4ColorVals.xml, is a comment then an assert occurs in a debug build of the DLL. This may not affect normal game play but it is annoying when trying to debug mod code. I've tried a few work arounds in the code, such as skipping comments at the bottom of the do-while loop, but they didn't work. The work around in the XML files is just don't have a comment as the last element.
 
Back
Top Bottom