(svn r11111) -Fix (r11106): missing const broke compilation with MSVC
This commit is contained in:
@@ -359,7 +359,7 @@ static uint ScanPath(const char *path, int basepath_length)
|
|||||||
bool FioTarFileListScanNewGRFCallback(const char *filename, int size, void *userdata)
|
bool FioTarFileListScanNewGRFCallback(const char *filename, int size, void *userdata)
|
||||||
{
|
{
|
||||||
uint *num = (uint *)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 no extension or extension isn't .grf, skip the file */
|
||||||
if (ext == NULL) return false;
|
if (ext == NULL) return false;
|
||||||
|
Reference in New Issue
Block a user