1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00

Fixes _scenarioFileName pointing to deleted memory

This commit is contained in:
Hielke Morsink
2016-09-11 23:30:13 +02:00
committed by Ted John
parent b0a8fb0a7c
commit 0ed526bb0d

View File

@@ -302,7 +302,7 @@ static void scenario_end()
void scenario_set_filename(const char *value)
{
substitute_path(_scenarioPath, gRCT2AddressScenariosPath, value);
_scenarioFileName = path_get_filename(value);
_scenarioFileName = path_get_filename(_scenarioPath);
}
/**