From 3140042b1d70a396349b92a4c873166aa65b6505 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Thu, 18 Jun 2015 22:35:08 +0100 Subject: [PATCH] fix #1391 --- src/interface/viewport_interaction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interface/viewport_interaction.c b/src/interface/viewport_interaction.c index f7a252a433..3e0e049945 100644 --- a/src/interface/viewport_interaction.c +++ b/src/interface/viewport_interaction.c @@ -436,14 +436,14 @@ static void viewport_interaction_remove_footpath_item(rct_map_element *mapElemen { int type; - type = mapElement->properties.scenery.type >> 4; - if (mapElement->type & 0x80) + type = mapElement->properties.path.type >> 4; + if (mapElement->type & 1) type |= 0x80; RCT2_GLOBAL(RCT2_ADDRESS_GAME_COMMAND_ERROR_TITLE, uint16) = STR_CANT_REMOVE_THIS; game_do_command( x, - ((mapElement->properties.scenery.type & 7) << 8) | 1, + ((mapElement->properties.path.type & 7) << 8) | 1, y, (type << 8) | mapElement->base_height, GAME_COMMAND_PLACE_PATH,