GB: Fix ROM bank initialization

This commit is contained in:
Jeffrey Pfau 2016-01-15 16:51:47 -08:00
parent cbc54ca09a
commit 9a4db4b03d
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void GBMemoryReset(struct GB* gb) {
}
gb->memory.wram = anonymousMemoryMap(GB_SIZE_WORKING_RAM);
gb->memory.wramBank = &gb->memory.wram[GB_SIZE_WORKING_RAM_BANK0];
gb->memory.romBank = &gb->memory.rom[GB_BASE_CART_BANK0];
gb->memory.romBank = &gb->memory.rom[GB_SIZE_CART_BANK0];
if (!gb->memory.wram) {
GBMemoryDeinit(gb);