Fix wrong palette check

This commit is contained in:
Mirco Miranda
2025-10-21 19:33:12 +02:00
parent 7512874620
commit 54c94764d1

View File

@ -1019,7 +1019,7 @@ QByteArray BODYChunk::deinterleave(const QByteArray &planes, qint32 y, const BMH
auto pal = cmap->palette();
if (ipal) {
auto tmp = ipal->palette(y);
if (tmp.size() == pal.size())
if (!tmp.isEmpty())
pal = tmp;
}
// HAM 6: 2 control bits+4 bits of data, 16-color palette