From 4dae6af9ce48f2aacea57e048c421e7ebec75e35 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 20 Dec 2014 05:17:29 -0800 Subject: [PATCH] GBA Memory: Fix value obtained from missing SRAM --- src/gba/gba-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/gba-memory.c b/src/gba/gba-memory.c index 045f56713..5b13ba297 100644 --- a/src/gba/gba-memory.c +++ b/src/gba/gba-memory.c @@ -446,7 +446,7 @@ int8_t GBALoad8(struct ARMCore* cpu, uint32_t address, int* cycleCounter) { value = GBASavedataReadFlash(&memory->savedata, address); } else { GBALog(gba, GBA_LOG_GAME_ERROR, "Reading from non-existent SRAM: 0x%08X", address); - value = 7; + value = 0xFF; } break; default: