Fixed logic bug (thanks, Dan!).

This commit is contained in:
Ryan C. Gordon 2010-02-23 21:58:49 -05:00
parent a4a7f88db0
commit a4a72dfe8c
2 changed files with 4 additions and 1 deletions

View File

@ -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 ...

View File

@ -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 */