mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-12-28 22:24:09 +01:00
fixed bug where cartridge was trying to read from nil object
This commit is contained in:
parent
9531b235c9
commit
cfed45e7a1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ module Waterfoul
|
||||||
|
|
||||||
def initialize(rom)
|
def initialize(rom)
|
||||||
# get cartridge type byte from game program
|
# get cartridge type byte from game program
|
||||||
cartridge_type = $mmu.read_byte CARTRIDGE_TYPE_MEM_LOC
|
cartridge_type = rom[CARTRIDGE_TYPE_MEM_LOC]
|
||||||
# assign memory bank controller to cartridge
|
# assign memory bank controller to cartridge
|
||||||
@mbc = cartrdige_controller cartridge_type, rom
|
@mbc = cartrdige_controller cartridge_type, rom
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue