diff --git a/polymer/eduke32/build/src/cache1d.c b/polymer/eduke32/build/src/cache1d.c index 6deeedc5d..365ffe269 100644 --- a/polymer/eduke32/build/src/cache1d.c +++ b/polymer/eduke32/build/src/cache1d.c @@ -1040,6 +1040,7 @@ static int32_t kopen_internal(const char *filename, char **lastpfn, char searchf { if (kzcurhand >= 0) arraypos[kzcurhand] = kztell(); kzclose(); + kzcurhand = -1; } if (searchfirst != 1 && (i = kzipopen(filename)) != 0) {