core, fix loading save state (svp, mapper)
authorkub <derkub@gmail.com>
Thu, 20 Jan 2022 18:26:39 +0000 (18:26 +0000)
committerkub <derkub@gmail.com>
Thu, 20 Jan 2022 18:26:39 +0000 (18:26 +0000)
pico/state.c

index 14e37e6..af2d4cc 100644 (file)
@@ -541,7 +541,7 @@ static int state_load(void *file)
         break;\r
 #endif\r
       default:\r
-        if (len|chunk == 0)\r
+        if (!len && !chunk)\r
            goto readend;\r
         if (carthw_chunks != NULL)\r
         {\r