mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-27 23:49:35 +01:00
(svn r11111) -Fix (r11106): missing const broke compilation with MSVC
This commit is contained in:
parent
fbbba11e13
commit
1c998c6d92
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user