From 9214c5e0a5ccc6f3340fa0e9ca391c212ef0c9d7 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 31 Jul 2006 12:10:20 +0000 Subject: [PATCH] (svn r5672) - Backport from trunk (r5652): Industry production change button doesn't work for oilrig passangers. --- industry_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/industry_gui.c b/industry_gui.c index 24decb00c0..e372fedc8c 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) {