mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-16 13:14:44 +00:00
Fix bug in SpriteImpl::resetPalettes() using an invalid "end" iterator after erasing an element from the m_palettes collection.
This commit is contained in:
parent
75fd21164e
commit
b82ec86994
@ -841,6 +841,7 @@ void SpriteImpl::resetPalettes()
|
||||
while (it != end) {
|
||||
delete *it; // palette
|
||||
it = m_palettes.erase(it);
|
||||
end = m_palettes.end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user