mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix custom SV4 files crashing the game
This commit is contained in:
@@ -341,7 +341,14 @@ private:
|
||||
std::string GetRCT1ScenarioName()
|
||||
{
|
||||
const scenario_index_entry * scenarioEntry = _scenarioRepository->GetByInternalName(_s4.scenario_name);
|
||||
return path_get_filename(scenarioEntry->path);
|
||||
if (scenarioEntry == nullptr)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
else
|
||||
{
|
||||
return path_get_filename(scenarioEntry->path);
|
||||
}
|
||||
}
|
||||
|
||||
void InitialiseEntryMaps()
|
||||
|
||||
Reference in New Issue
Block a user