diff --git a/src/windows/guest.c b/src/windows/guest.c index 17467cf82b..d63d806854 100644 --- a/src/windows/guest.c +++ b/src/windows/guest.c @@ -1217,7 +1217,7 @@ void window_guest_overview_tool_down(rct_window* w, int widgetIndex, int x, int rct_map_element* mapElement; footpath_get_coordinates_from_pos(x, y + 16, &dest_x, &dest_y, NULL, &mapElement); - if (x == (sint16)0x8000) + if (dest_x == (sint16)0x8000) return; game_command_callback = game_command_callback_pickup_guest; diff --git a/src/windows/staff.c b/src/windows/staff.c index 5b54d8ffc2..17c9c84b0b 100644 --- a/src/windows/staff.c +++ b/src/windows/staff.c @@ -1162,7 +1162,7 @@ void window_staff_overview_tool_down(rct_window* w, int widgetIndex, int x, int rct_map_element* mapElement; footpath_get_coordinates_from_pos(x, y + 16, &dest_x, &dest_y, NULL, &mapElement); - if (x == (sint16)0x8000) + if (dest_x == (sint16)0x8000) return; game_command_callback = game_command_callback_pickup_staff;