mirror of https://github.com/OpenTTD/OpenTTD
(svn r19000) -Cleanup: remove redundant check
parent
68b908a27c
commit
2b8f7f2078
|
@ -279,7 +279,7 @@ char *FioFindFullPath(char *buf, size_t buflen, Subdirectory subdir, const char
|
||||||
/* Be, as opening files, aware that sometimes the filename
|
/* Be, as opening files, aware that sometimes the filename
|
||||||
* might be in uppercase when it is in lowercase on the
|
* might be in uppercase when it is in lowercase on the
|
||||||
* disk. Ofcourse Windows doesn't care about casing. */
|
* disk. Ofcourse Windows doesn't care about casing. */
|
||||||
strtolower(buf + ((subdir == NO_DIRECTORY) ? 0 : strlen(_searchpaths[sp]) - 1));
|
strtolower(buf + strlen(_searchpaths[sp]) - 1);
|
||||||
if (FileExists(buf)) break;
|
if (FileExists(buf)) break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue