From 9569ccb6349d85b82a9e6ba283d5c9fca3f7d453 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 17 May 2016 00:17:01 -0700 Subject: [PATCH] GBA: Fix warning about too old version of a savestate --- src/gba/serialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gba/serialize.c b/src/gba/serialize.c index f5717e1b5..fe1fbba57 100644 --- a/src/gba/serialize.c +++ b/src/gba/serialize.c @@ -118,7 +118,7 @@ bool GBADeserialize(struct GBA* gba, const struct GBASerializedState* state) { } else if (ucheck < GBA_SAVESTATE_MAGIC) { mLOG(GBA_STATE, WARN, "Invalid savestate: expected %08X, got %08X", GBA_SAVESTATE_MAGIC + GBA_SAVESTATE_VERSION, ucheck); error = true; - } else { + } else if (ucheck < GBA_SAVESTATE_MAGIC + GBA_SAVESTATE_VERSION) { mLOG(GBA_STATE, WARN, "Old savestate: expected %08X, got %08X, continuing anyway", GBA_SAVESTATE_MAGIC + GBA_SAVESTATE_VERSION, ucheck); } LOAD_32(ucheck, 0, &state->biosChecksum);