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