1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Small fixes

This commit is contained in:
Michael Steenbeek
2018-09-14 10:18:46 +02:00
parent 865a497115
commit 1a825a4045
3 changed files with 3 additions and 3 deletions

View File

@@ -2157,7 +2157,7 @@ static void window_tile_inspector_scrollpaint(rct_window* w, rct_drawpixelinfo*
case TILE_ELEMENT_TYPE_WALL:
snprintf(
buffer, sizeof(buffer), "%s (%s)", language_get_string(STR_TILE_INSPECTOR_WALL),
language_get_string(get_wall_entry(tileElement->AsSmallScenery()->GetEntryIndex())->name));
language_get_string(get_wall_entry(tileElement->properties.wall.type)->name));
typeName = buffer;
break;
case TILE_ELEMENT_TYPE_LARGE_SCENERY:

View File

@@ -3459,7 +3459,7 @@ void map_obstruction_set_error_text(rct_tile_element* tileElement)
}
break;
case TILE_ELEMENT_TYPE_WALL:
sceneryEntry = get_wall_entry(tileElement->AsSmallScenery()->GetEntryIndex());
sceneryEntry = get_wall_entry(tileElement->properties.wall.type);
errorStringId = STR_X_IN_THE_WAY;
set_format_arg(0, rct_string_id, sceneryEntry->name);
break;

View File

@@ -621,4 +621,4 @@ rct_scenery_entry* get_small_scenery_entry(int32_t entryIndex)
result = (rct_scenery_entry*)obj->GetLegacyData();
}
return result;
}
}