irrXML "single char after specialChar" bug

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
patfns
Posts: 1
Joined: Sat Apr 22, 2006 1:49 am

irrXML "single char after specialChar" bug

Post by patfns »

Example: <blabla myattr1="<sup>X"/>

The result of getAttributeValue() is "<sup>" and not "<sup>X".


It's a tiny bug in the replaceSpecialCharacters function (CXMLReaderImpl.h).
Here my bugfix:

// if (oldPos < origstr.size()-1)
if (oldPos <= origstr.size()-1)
newstr.append(origstr.subString(oldPos, origstr.size()-oldPos));

return newstr;
}
Post Reply