LoROM: Don't map SRAM if size is 0.

This commit is contained in:
Brandon Wright 2018-08-07 11:48:21 -05:00
parent e3220953c4
commit 386bfe0aa9
1 changed files with 3 additions and 0 deletions

View File

@ -2950,6 +2950,9 @@ void CMemory::map_LoROMSRAM (void)
{ {
uint32 hi; uint32 hi;
if (SRAMSize == 0)
return;
if (ROMSize > 11 || SRAMSize > 5) if (ROMSize > 11 || SRAMSize > 5)
hi = 0x7fff; hi = 0x7fff;
else else