diff options
author | smatz <smatz@openttd.org> | 2010-02-04 00:40:11 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-02-04 00:40:11 +0000 |
commit | 2b8f7f207844599174a1756411b65347fb2b9fa5 (patch) | |
tree | e5068b070adfd91e8e4da94a4d2e8d9f26916c87 /src | |
parent | 68b908a27cdcd93549eac710efc6b4db8d5de205 (diff) | |
download | openttd-2b8f7f207844599174a1756411b65347fb2b9fa5.tar.xz |
(svn r19000) -Cleanup: remove redundant check
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index ae2763fd9..e966208fb 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -279,7 +279,7 @@ char *FioFindFullPath(char *buf, size_t buflen, Subdirectory subdir, const char /* Be, as opening files, aware that sometimes the filename * might be in uppercase when it is in lowercase on the * 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; #endif } |