summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-09-15 00:49:44 +0000
committerglx <glx@openttd.org>2007-09-15 00:49:44 +0000
commit045c99636485b6f4090005dcb95cd54e258b65e5 (patch)
tree9532a436cab0dfd22a76ad63c376149a8c1c39f7 /src
parent87b487d790d80aa52038601c06c19af3214b1e95 (diff)
downloadopenttd-045c99636485b6f4090005dcb95cd54e258b65e5.tar.xz
(svn r11111) -Fix (r11106): missing const broke compilation with MSVC
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_config.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp
index 1a363b5ef..0db3c67aa 100644
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -359,7 +359,7 @@ static uint ScanPath(const char *path, int basepath_length)
bool FioTarFileListScanNewGRFCallback(const char *filename, int size, void *userdata)
{
uint *num = (uint *)userdata;
- char *ext = strrchr(filename, '.');
+ const char *ext = strrchr(filename, '.');
/* If no extension or extension isn't .grf, skip the file */
if (ext == NULL) return false;