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

Fix #7995: Crash when interacting with large scenery

This commit is contained in:
Gymnasiast
2018-09-16 20:21:22 +02:00
parent c46155bbda
commit 2d8b93e514

View File

@@ -3464,7 +3464,8 @@ void map_obstruction_set_error_text(rct_tile_element* tileElement)
set_format_arg(0, rct_string_id, sceneryEntry->name);
break;
case TILE_ELEMENT_TYPE_LARGE_SCENERY:
sceneryEntry = get_large_scenery_entry(tileElement->properties.scenerymultiple.type);
// Fixme: replace by proper call.
sceneryEntry = get_large_scenery_entry(tileElement->properties.scenerymultiple.type & 0x3FF);
errorStringId = STR_X_IN_THE_WAY;
set_format_arg(0, rct_string_id, sceneryEntry->name);
break;