From a4a72dfe8c3e18202aa60ff974ffbb6c5a4d8215 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 23 Feb 2010 21:58:49 -0500 Subject: [PATCH] Fixed logic bug (thanks, Dan!). --- docs/CREDITS.txt | 3 +++ extras/ignorecase.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/CREDITS.txt b/docs/CREDITS.txt index bc069ad5..d06283d8 100644 --- a/docs/CREDITS.txt +++ b/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 ... diff --git a/extras/ignorecase.c b/extras/ignorecase.c index 1a92e64e..9adc9f8d 100644 --- a/extras/ignorecase.c +++ b/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 */