Fix uninitialized rgbmap (found w/MSVC debug, GitHub actions failed)

Regression from 2785a9fef7
This commit is contained in:
David Capello 2022-07-16 11:47:52 -03:00
parent 1912053f33
commit f7dee88901

View File

@ -219,6 +219,9 @@ void SetPixelFormat::convertImage(doc::Sprite* sprite,
else
newMaskIndex = rgbmap->maskIndex();
}
else {
rgbmap = nullptr;
}
ImageRef newImage(
render::convert_pixel_format
(oldImage.get(), nullptr, m_newFormat,