1
0
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:
IntelOrca
2016-01-01 20:46:13 +00:00
parent 9d88982138
commit 8f5a9cfade

View File

@@ -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;