Add an extra check that was missing

develop
Quietust 2014-08-05 20:19:31 -05:00
parent 1bcfcd36f6
commit 86c036b7d3
1 changed files with 3 additions and 0 deletions

@ -772,6 +772,9 @@ 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: