# HG changeset patch # User Darkvater # Date 1154347820 0 # Node ID 9c4cb00a88fc523c20f0912a848fae7c93839df2 # Parent 250f5564fcae4a433d605008b07426b12c0bf143 (svn r5672) - Backport from trunk (r5652): Industry production change button doesn't work for oilrig passangers. diff -r 250f5564fcae -r 9c4cb00a88fc industry_gui.c --- a/industry_gui.c Mon Jul 31 12:08:08 2006 +0000 +++ b/industry_gui.c Mon Jul 31 12:10:20 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) {