Fix bug in SpriteImpl::resetPalettes() using an invalid "end" iterator after erasing an element from the m_palettes collection.

This commit is contained in:
David Capello 2011-01-18 19:22:03 -03:00
parent 75fd21164e
commit b82ec86994

View File

@ -841,6 +841,7 @@ void SpriteImpl::resetPalettes()
while (it != end) {
delete *it; // palette
it = m_palettes.erase(it);
end = m_palettes.end();
}
}
}