From 86c036b7d336e81c41246312b4a69f0f9d4f9307 Mon Sep 17 00:00:00 2001 From: Quietust Date: Tue, 5 Aug 2014 20:19:31 -0500 Subject: [PATCH] Add an extra check that was missing --- plugins/manipulator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/manipulator.cpp b/plugins/manipulator.cpp index 36ab7e218..19327c6b1 100644 --- a/plugins/manipulator.cpp +++ b/plugins/manipulator.cpp @@ -772,6 +772,9 @@ void viewscreen_unitlaborsst::feed(set *events) if ((gps->mouse_y >= 4) && (gps->mouse_y < 4 + num_rows)) click_unit = gps->mouse_y - 4 + first_row; + if (click_unit == -1) + click_body = DISP_COLUMN_MAX; + switch (click_header) { case DISP_COLUMN_HAPPINESS: