diff --git a/memmap.cpp b/memmap.cpp index f2cb7a7f..63e9d3a4 100644 --- a/memmap.cpp +++ b/memmap.cpp @@ -4006,7 +4006,8 @@ void CMemory::CheckForAnyPatch(const char *rom_filename, bool8 header, int32 &ro if (!flag) try_zip_ips_sequence("ip%d"); - assert(unzClose(file) == UNZ_OK); + int close_ret = unzClose(file); + assert(close_ret == UNZ_OK); if (flag) return;