From 0ed526bb0d25cf93d9634028505b9cc30474221d Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Sun, 11 Sep 2016 23:30:13 +0200 Subject: [PATCH] Fixes _scenarioFileName pointing to deleted memory --- src/scenario.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scenario.c b/src/scenario.c index 49e42192ba..81a31dd3a9 100644 --- a/src/scenario.c +++ b/src/scenario.c @@ -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); } /**