1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Replace context_load_park_from_file() with object equivalent

This commit is contained in:
Gymnasiast
2022-10-08 19:23:26 +02:00
parent fd84cc111f
commit d5f6a5b285
7 changed files with 5 additions and 11 deletions

View File

@@ -1517,7 +1517,7 @@ static int32_t cc_load_park([[maybe_unused]] InteractiveConsole& console, [[mayb
{
savePath += ".park";
}
if (context_load_park_from_file(savePath.c_str()))
if (OpenRCT2::GetContext()->LoadParkFromFile(savePath))
{
console.WriteFormatLine("Park %s was loaded successfully", savePath.c_str());
}