mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +01:00
Refactor legacy GetSourceGame() to method
This commit is contained in:
@@ -230,7 +230,7 @@ namespace ObjectFactory
|
||||
{
|
||||
throw std::runtime_error("Object has errors");
|
||||
}
|
||||
result->SetSourceGames({ object_entry_get_source_game_legacy(&entry) });
|
||||
result->SetSourceGames({ entry.GetSourceGame() });
|
||||
}
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
@@ -262,7 +262,7 @@ namespace ObjectFactory
|
||||
}
|
||||
else
|
||||
{
|
||||
result->SetSourceGames({ object_entry_get_source_game_legacy(entry) });
|
||||
result->SetSourceGames({ entry->GetSourceGame() });
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user