diff --git a/engine/gl/gl_draw.c b/engine/gl/gl_draw.c index 12138b883..5f56ffbf6 100644 --- a/engine/gl/gl_draw.c +++ b/engine/gl/gl_draw.c @@ -401,7 +401,7 @@ mpic_t *GLDraw_SafeCachePic (char *path) if (!mem) mem = ReadTargaFile((qbyte *)data, com_filesize, &pic->pic.width, &height, 0); #ifdef AVAIL_PNGLIB - if (!mem); + if (!mem) mem = ReadPNGFile((qbyte *)data, com_filesize, &pic->pic.width, &height, alternatename); #endif #ifdef AVAIL_JPEGLIB