# HG changeset patch # User Darkvater # Date 2006-07-30 14:53:59 # Node ID d0f4ca4267ed4b46a0c0c9de9a2b104ffd47f88f # Parent cf45378f771d5c87cbe7340ffc2684518016b2b8 (svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work diff --git a/industry_gui.c b/industry_gui.c --- a/industry_gui.c +++ b/industry_gui.c @@ -345,7 +345,7 @@ static void IndustryViewWndProc(Window * x = e->click.pt.x; line = (e->click.pt.y - 127) / 10; - if (e->click.pt.y >= 127 && IS_INT_INSIDE(line, 0, 2) && i->produced_cargo[line]) { + if (e->click.pt.y >= 127 && IS_INT_INSIDE(line, 0, 2) && i->produced_cargo[line] != CT_INVALID) { if (IS_INT_INSIDE(x, 5, 25) ) { // clicked buttons if (x < 15) {