fix #2670: title was not being loaded when a scenario failed to load

This commit is contained in:
IntelOrca committed 2016-01-09 15:11:12 +00:00
1 parent 842484eff5
commit f84c659010
1 file changed
+4 -1
+4 -1
View File
@@ -28,6 +28,7 @@
#include "../interface/widget.h"
#include "../interface/window.h"
#include "../interface/themes.h"
#include "../title.h"
#include "../util/util.h"
#define INITIAL_NUM_UNLOCKED_SCENARIOS 5
@@ -274,7 +275,9 @@ static void window_scenarioselect_scrollmousedown(rct_window *w, int scrollIndex
y -= 24;
if (y < 0 && !listItem->scenario.is_locked) {
audio_play_sound_panned(SOUND_CLICK_1, w->width / 2 + w->x, 0, 0, 0);
scenario_load_and_play_from_path(listItem->scenario.scenario->path);
if (!scenario_load_and_play_from_path(listItem->scenario.scenario->path)) {
title_load();
}
}
break;
}