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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user