From: kub Date: Thu, 20 Jan 2022 18:26:39 +0000 (+0000) Subject: core, fix loading save state (svp, mapper) X-Git-Tag: v2.00~370 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=464b4c171b1676428c3099008fa5e2d686433dfc;p=picodrive.git core, fix loading save state (svp, mapper) --- 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) {