mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
fix issue caused by not copying filename string
This commit is contained in:
@@ -403,7 +403,7 @@ void scenario_success()
|
||||
} else {
|
||||
scenario_highscore_free(scenario->highscore);
|
||||
}
|
||||
scenario->highscore->fileName = (utf8*)path_get_filename(scenario->path);
|
||||
scenario->highscore->fileName = _strdup(path_get_filename(scenario->path));
|
||||
scenario->highscore->name = NULL;
|
||||
scenario->highscore->company_value = companyValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user