mirror of https://github.com/OpenTTD/OpenTTD
(svn r15633) -Fix (r15632): apparently there are several conflicting definitions of the arguments / return values of strrchr.
parent
406832fed8
commit
d1a9fcc67f
|
@ -555,7 +555,7 @@ public:
|
||||||
/* open the scenario file, but first get the name.
|
/* open the scenario file, but first get the name.
|
||||||
* This is safe as we check on extension which
|
* This is safe as we check on extension which
|
||||||
* must always exist. */
|
* must always exist. */
|
||||||
*strrchr(filename, '.') = '\0';
|
*(char *)strrchr(filename, '.') = '\0';
|
||||||
f = FioFOpenFile(filename, "rb", SCENARIO_DIR, &size);
|
f = FioFOpenFile(filename, "rb", SCENARIO_DIR, &size);
|
||||||
if (f == NULL) return false;
|
if (f == NULL) return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue