1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Replace object_entry_get_type() with method (#10937)

This commit is contained in:
Michael Steenbeek
2020-03-15 12:07:04 +01:00
committed by GitHub
parent c31ef8e635
commit 18ebe73dfa
12 changed files with 37 additions and 39 deletions

View File

@@ -346,8 +346,7 @@ static bool _updatedListAfterDownload;
static rct_string_id get_object_type_string(const rct_object_entry* entry)
{
rct_string_id result;
uint8_t objectType = object_entry_get_type(entry);
switch (objectType)
switch (entry->GetType())
{
case OBJECT_TYPE_RIDE:
result = STR_OBJECT_SELECTION_RIDE_VEHICLES_ATTRACTIONS;