(svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work

This commit is contained in:
Darkvater 2006-07-30 14:53:59 +00:00
parent a46aa3153c
commit 205c9c227c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {