]> git.jsancho.org Git - lugaru.git/commitdiff
Fixed a clang warning
authorCôme Chilliet <come@chilliet.eu>
Tue, 29 Nov 2016 04:08:31 +0000 (11:08 +0700)
committerCôme Chilliet <come@chilliet.eu>
Tue, 29 Nov 2016 04:08:31 +0000 (11:08 +0700)
Source/ImageIO.cpp

index affcb8c58c29d40cc1a9dc2a96cfedac9b7cb020..3e9f15501eb70a65898476d1be80705c83f16a85 100644 (file)
@@ -154,7 +154,7 @@ static bool load_png(const char *file_name, ImageRec &tex)
 
     if (fp == NULL) {
         cerr << file_name << " not found" << endl;
-        return(NULL);
+        return false;
     }
 
     png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);