From d53f27620722eb8f3e9233f2c98159d1edd8a250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 18 Apr 2017 22:49:33 +0200 Subject: [PATCH] Fix scenery eye dropper interaction with footpaths --- src/openrct2/windows/top_toolbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/windows/top_toolbar.c b/src/openrct2/windows/top_toolbar.c index effe5dd24d..9af833ccc4 100644 --- a/src/openrct2/windows/top_toolbar.c +++ b/src/openrct2/windows/top_toolbar.c @@ -1078,7 +1078,7 @@ static void scenery_eyedropper_tool_down(sint16 x, sint16 y, sint16 widgetIndex) { sint32 entryIndex = footpath_element_get_path_scenery_index(mapElement); rct_scenery_entry * sceneryEntry = get_footpath_item_entry(entryIndex); - if (sceneryEntry != NULL || sceneryEntry != (rct_scenery_entry *)-1) { + if (sceneryEntry != NULL && sceneryEntry != (rct_scenery_entry *)-1) { sint32 sceneryId = get_scenery_id_from_entry_index(OBJECT_TYPE_PATH_BITS, entryIndex); if (sceneryId != -1 && window_scenery_set_selected_item(sceneryId)) { gWindowSceneryEyedropperEnabled = false;