author | Darkvater |
Sun, 30 Jul 2006 14:53:59 +0000 | |
changeset 4192 | f3a77dfe5ab7 |
parent 4191 | 25538ade07c2 |
child 4193 | ef08dda0369e |
industry_gui.c | file | annotate | diff | comparison | revisions |
--- 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) {