Actual correct fix here

develop
Quietust 2014-08-05 20:28:09 -05:00
parent 86c036b7d3
commit f34d68e567
1 changed files with 1 additions and 4 deletions

@ -761,7 +761,7 @@ void viewscreen_unitlaborsst::feed(set<df::interface_key> *events)
{ {
if ((gps->mouse_y >= 1) && (gps->mouse_y <= 2)) if ((gps->mouse_y >= 1) && (gps->mouse_y <= 2))
click_header = i; click_header = i;
if ((gps->mouse_y >= 4) && (gps->mouse_y <= 4 + num_rows)) if ((gps->mouse_y >= 4) && (gps->mouse_y < 4 + num_rows))
click_body = i; click_body = i;
} }
} }
@ -772,9 +772,6 @@ void viewscreen_unitlaborsst::feed(set<df::interface_key> *events)
if ((gps->mouse_y >= 4) && (gps->mouse_y < 4 + num_rows)) if ((gps->mouse_y >= 4) && (gps->mouse_y < 4 + num_rows))
click_unit = gps->mouse_y - 4 + first_row; click_unit = gps->mouse_y - 4 + first_row;
if (click_unit == -1)
click_body = DISP_COLUMN_MAX;
switch (click_header) switch (click_header)
{ {
case DISP_COLUMN_HAPPINESS: case DISP_COLUMN_HAPPINESS: