diff --git a/CHANGES b/CHANGES index f624e78ce..a011999cd 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ Bugfixes: - GBA Savedata: Fix crash when resizing flash Misc: - GBA: Improve multiboot image detection + - GB MBC: Remove erroneous bank 0 wrapping 0.6.1: (2017-10-01) Bugfixes: diff --git a/src/gb/mbc.c b/src/gb/mbc.c index 0c51b1a5f..2f2d1216e 100644 --- a/src/gb/mbc.c +++ b/src/gb/mbc.c @@ -39,9 +39,6 @@ void GBMBCSwitchBank(struct GB* gb, int bank) { mLOG(GB_MBC, GAME_ERROR, "Attempting to switch to an invalid ROM bank: %0X", bank); bankStart &= (gb->memory.romSize - 1); bank = bankStart / GB_SIZE_CART_BANK0; - if (!bank) { - ++bank; - } } gb->memory.romBank = &gb->memory.rom[bankStart]; gb->memory.currentBank = bank;