Don't trash our buffer pointer when stepping through the taglist

This commit is contained in:
Chris Young 2015-01-28 23:38:26 +00:00
parent bc3cb4070d
commit ad4d1f66d3

View File

@ -87,7 +87,9 @@ struct OutlineFont *OpenOutlineFont(STRPTR fileName, struct List *list, ULONG fl
}
/* Relocate all the OT_Indirect tags */
while (ti = NextTagItem(&buffer)) {
struct TagItem *tstate = buffer;
while (ti = NextTagItem(&tstate)) {
if(ti->ti_Tag & OT_Indirect) {
ti->ti_Data += buffer;
}