GB Memory: Initialize sram

This commit is contained in:
Jeffrey Pfau 2016-02-14 23:07:44 -08:00
parent ddc2932c95
commit 85e789c3e9
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ void GBMemoryInit(struct GB* gb) {
gb->memory.rom = 0; gb->memory.rom = 0;
gb->memory.romBank = 0; gb->memory.romBank = 0;
gb->memory.romSize = 0; gb->memory.romSize = 0;
gb->memory.sram = 0;
gb->memory.mbcType = GB_MBC_NONE; gb->memory.mbcType = GB_MBC_NONE;
gb->memory.mbc = 0; gb->memory.mbc = 0;