Ver Fonte

Fixed logic bug (thanks, Dan!).

Ryan C. Gordon há 16 anos atrás
pai
commit
a4a72dfe8c
2 ficheiros alterados com 4 adições e 1 exclusões
  1. 3 0
      docs/CREDITS.txt
  2. 1 1
      extras/ignorecase.c

+ 3 - 0
docs/CREDITS.txt

@@ -109,6 +109,9 @@ PHYSFS_stat() API:
     Christoph Nelles
     Indy Sams
 
+Bug fixes:
+    Dan Olson
+
 Other stuff:
     Your name here! Patches go to icculus@icculus.org ...
 

+ 1 - 1
extras/ignorecase.c

@@ -108,7 +108,7 @@ int PHYSFSEXT_locateCorrectCase(char *buf)
     } /* while */
 
     /* check final element... */
-    return locateOneElement(buf ? 0 : -1);
+    return locateOneElement(buf) ? 0 : -1;
 } /* PHYSFSEXT_locateCorrectCase */