1
0
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:
Gymnasiast
2020-10-17 13:27:02 -07:00
parent 8a4df108ba
commit 13fb0b43da
5 changed files with 8 additions and 10 deletions

View File

@@ -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;