mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 09:04:02 +00:00
Fix new possible crash in GifDecoder::getFrameColormap()
This commit is contained in:
parent
a6c24ac768
commit
271750129c
@ -374,8 +374,8 @@ private:
|
||||
// Doesn't have local map, use the global one
|
||||
colormap = global;
|
||||
}
|
||||
else if (!m_hasLocalColormaps) {
|
||||
if (!global || global->ColorCount != colormap->ColorCount)
|
||||
else if (global && !m_hasLocalColormaps) {
|
||||
if (global->ColorCount != colormap->ColorCount)
|
||||
m_hasLocalColormaps = true;
|
||||
else {
|
||||
for (int i=0; i<colormap->ColorCount; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user