(svn r11111) -Fix (r11106): missing const broke compilation with MSVC
authorglx
Sat, 15 Sep 2007 00:49:44 +0000
changeset 7586 efc1a25de95e
parent 7585 c8dde88402a8
child 7587 93cca69eccdf
(svn r11111) -Fix (r11106): missing const broke compilation with MSVC
src/newgrf_config.cpp
--- a/src/newgrf_config.cpp	Fri Sep 14 23:46:49 2007 +0000
+++ b/src/newgrf_config.cpp	Sat Sep 15 00:49:44 2007 +0000
@@ -359,7 +359,7 @@
 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;