From 464b4c171b1676428c3099008fa5e2d686433dfc Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 20 Jan 2022 18:26:39 +0000 Subject: [PATCH] core, fix loading save state (svp, mapper) --- pico/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico/state.c b/pico/state.c index 14e37e6e..af2d4cc0 100644 --- a/pico/state.c +++ b/pico/state.c @@ -541,7 +541,7 @@ static int state_load(void *file) break; #endif default: - if (len|chunk == 0) + if (!len && !chunk) goto readend; if (carthw_chunks != NULL) { -- 2.39.5