Mercurial > hg > openttd
changeset 4192:e279c1cf046a draft
(svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Sun, 30 Jul 2006 14:53:59 +0000 |
parents | 8021a725bedf |
children | 6e37da22295b |
files | industry_gui.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/industry_gui.c +++ b/industry_gui.c @@ -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) {