(svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work
authorDarkvater
Sun, 30 Jul 2006 14:53:59 +0000
changeset 4192 eaf5d315891c
parent 4191 d70efeb2733d
child 4193 9e82090fef58
(svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work
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) {