diff --git a/source/quakeio.c b/source/quakeio.c index 987a603..f9276f5 100644 --- a/source/quakeio.c +++ b/source/quakeio.c @@ -260,7 +260,7 @@ Qprintf (QFile *file, const char *fmt, ...) ret = strlen (buf); /* some *snprintf don't return the nb of bytes written */ if (ret > 0) - ret = gzwrite (file, buf, (unsigned) ret); + ret = gzwrite (file->gzfile, buf, (unsigned) ret); } #endif va_end (args);