Fixed logic bug (thanks, Dan!).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 23 Feb 2010 21:58:49 -0500
changeset 1056 5db207d5cb58
parent 1055 8974a4a352fd
child 1059 2076e853ce57
Fixed logic bug (thanks, Dan!).
docs/CREDITS.txt
extras/ignorecase.c
--- a/docs/CREDITS.txt	Thu Feb 18 09:34:08 2010 -0500
+++ b/docs/CREDITS.txt	Tue Feb 23 21:58:49 2010 -0500
@@ -109,6 +109,9 @@
     Christoph Nelles
     Indy Sams
 
+Bug fixes:
+    Dan Olson
+
 Other stuff:
     Your name here! Patches go to icculus@icculus.org ...
 
--- a/extras/ignorecase.c	Thu Feb 18 09:34:08 2010 -0500
+++ b/extras/ignorecase.c	Tue Feb 23 21:58:49 2010 -0500
@@ -108,7 +108,7 @@
     } /* while */
 
     /* check final element... */
-    return locateOneElement(buf ? 0 : -1);
+    return locateOneElement(buf) ? 0 : -1;
 } /* PHYSFSEXT_locateCorrectCase */