summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-07-30 14:53:59 +0000
committerDarkvater <darkvater@openttd.org>2006-07-30 14:53:59 +0000
commit205c9c227cf8201900cc26b055b99906df6a87cb (patch)
tree871cae595390ce74ca6b7c3d8f7cd63d89f6e435 /industry_gui.c
parenta46aa3153c18e61012c97cf6b88237e9b4687a5d (diff)
downloadopenttd-205c9c227cf8201900cc26b055b99906df6a87cb.tar.xz
(svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/industry_gui.c b/industry_gui.c
index 5d55ecf67..6c45678b3 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -345,7 +345,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
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) {