author | Darkvater |
Mon, 31 Jul 2006 12:10:20 +0000 | |
branch | 0.4 |
changeset 10067 | 9c4cb00a88fc |
parent 10066 | 250f5564fcae |
child 10068 | 0d713ced91d5 |
industry_gui.c | file | annotate | diff | comparison | revisions |
--- 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) {