mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
Apply review requests
This commit is contained in:
@@ -63,12 +63,7 @@ void TerrainEdgeObject::ReadJson(IReadObjectContext* context, json_t& root)
|
||||
|
||||
TerrainEdgeObject* TerrainEdgeObject::GetById(ObjectEntryIndex entryIndex)
|
||||
{
|
||||
TerrainEdgeObject* result = nullptr;
|
||||
auto& objMgr = OpenRCT2::GetContext()->GetObjectManager();
|
||||
auto obj = objMgr.GetLoadedObject(ObjectType::TerrainSurface, entryIndex);
|
||||
if (obj != nullptr)
|
||||
{
|
||||
result = static_cast<TerrainEdgeObject*>(obj);
|
||||
}
|
||||
return result;
|
||||
return obj != nullptr ? static_cast<TerrainEdgeObject*>(obj) : nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user