From 1c998c6d92043c89d88410d23d02eb2e11a2eb72 Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 15 Sep 2007 00:49:44 +0000 Subject: [PATCH] (svn r11111) -Fix (r11106): missing const broke compilation with MSVC --- src/newgrf_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 1a363b5ef4..0db3c67aa9 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;