diff --git a/src/drivers/Qt/iNesHeaderEditor.cpp b/src/drivers/Qt/iNesHeaderEditor.cpp index f0c6c351..f01485fa 100644 --- a/src/drivers/Qt/iNesHeaderEditor.cpp +++ b/src/drivers/Qt/iNesHeaderEditor.cpp @@ -1334,12 +1334,9 @@ bool iNesHeaderEditor_t::WriteHeaderData(iNES_HEADER* header) if (mapper < 4096) { - if (mapper < 256) - { - _header.ROM_type |= (mapper & 0xF) << 4; - _header.ROM_type2 |= (mapper & 0xF0); - } - else + _header.ROM_type |= (mapper & 0xF) << 4; + _header.ROM_type2 |= (mapper & 0xF0); + if (mapper >= 256) { if (ines20) {