diff --git a/code/renderercommon/tr_image_png.c b/code/renderercommon/tr_image_png.c index 532454c555..7b6fbada89 100644 --- a/code/renderercommon/tr_image_png.c +++ b/code/renderercommon/tr_image_png.c @@ -2274,7 +2274,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height) { case PNG_ColourType_Grey : { - if(!ChunkHeaderLength == 2) + if(ChunkHeaderLength != 2) { CloseBufferedFile(ThePNG); @@ -2296,7 +2296,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height) case PNG_ColourType_True : { - if(!ChunkHeaderLength == 6) + if(ChunkHeaderLength != 6) { CloseBufferedFile(ThePNG);