# HG changeset patch # User Darkvater # Date 1154271239 0 # Node ID f3a77dfe5ab78da597f07494de5c3788f89b52eb # Parent 25538ade07c26bc3f6a76f1c2409b29578713522 (svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work diff -r 25538ade07c2 -r f3a77dfe5ab7 industry_gui.c --- a/industry_gui.c Sun Jul 30 07:42:37 2006 +0000 +++ b/industry_gui.c Sun Jul 30 14:53:59 2006 +0000 @@ -345,7 +345,7 @@ 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) {