mbee: coverity 333015

This commit is contained in:
Robbbert 2022-04-10 15:23:10 +10:00
parent b2a289ecb4
commit a16a35c5aa

View File

@ -757,7 +757,7 @@ image_init_result mbee_state::load_cart(device_image_interface &image, generic_s
}
m_pak_extended[pak_index] = (size > 0x1000) ? true : false;
slot->rom_alloc(m_pak_extended ? 0x2000 : 0x1000, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
slot->rom_alloc(m_pak_extended[pak_index] ? 0x2000 : 0x1000, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
slot->common_load_rom(slot->get_rom_base(), size, "rom");
// Validate the rom