fix files sometimes not loading properly

Namely, when the path cache is off and the file closely matches the name
of another file, apparently.
This commit is contained in:
Struma 2021-11-27 22:51:13 -05:00
parent 52705de642
commit 3da0f4c948

View file

@ -568,7 +568,7 @@ openReadEnumCB(void *d, const char *dirpath, const char *filename) {
* of the extension), or up to a following '\0' (full match), we've
* found our file */
if (last != '.' && last != '\0')
return PHYSFS_ENUM_STOP;
return PHYSFS_ENUM_OK;
/* If the path cache is active, translate from lower case
* to mixed case path */