Fix crash when selection scenarios

This commit is contained in:
duncanspumpkin 2023-06-28 21:51:57 +01:00
parent 57bb450a2a
commit aa93b8d041
1 changed files with 2 additions and 5 deletions

View File

@ -392,12 +392,9 @@ public:
{
OpenRCT2::Audio::Play(OpenRCT2::Audio::SoundId::Click1, 0, windowPos.x + (width / 2));
gFirstTimeSaving = true;
Close(); // The callback will likely close this window so this is perhaps overkill
_callback(listItem.scenario.scenario->Path);
if (IsTitleEditor())
{
Close();
return;
}
return;
}
break;
}