summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-22 15:50:54 +0000
committerdominik <dominik@openttd.org>2005-01-22 15:50:54 +0000
commit6e17ee9fe2fdcd8e69f2341dfc4b6e0bbd6dddc7 (patch)
tree896d9c2855f185e9d2c26d0d17242ae0d74c80cc
parent5d443a248217eb2aa22c8060774c9a0b6b51b4b2 (diff)
downloadopenttd-6e17ee9fe2fdcd8e69f2341dfc4b6e0bbd6dddc7.tar.xz
(svn r1586) Fix: [ 1107340 ] Graphs don't show comapany info for company #8
-rw-r--r--graph_gui.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/graph_gui.c b/graph_gui.c
index 247d9c8dc..d575b8044 100644
--- a/graph_gui.c
+++ b/graph_gui.c
@@ -345,7 +345,8 @@ static void OperatingProfitWndProc(Window *w, WindowEvent *e)
i++;
}
}
- gd.num_dataset=numd;
+
+ gd.num_dataset = numd + 1;
DrawGraph(&gd);
} break;
@@ -418,7 +419,7 @@ static void IncomeGraphWndProc(Window *w, WindowEvent *e)
}
}
- gd.num_dataset = numd;
+ gd.num_dataset = numd + 1;
DrawGraph(&gd);
break;
@@ -491,7 +492,7 @@ static void DeliveredCargoGraphWndProc(Window *w, WindowEvent *e)
}
}
- gd.num_dataset = numd;
+ gd.num_dataset = numd + 1;
DrawGraph(&gd);
break;
@@ -783,7 +784,8 @@ static void PerformanceHistoryWndProc(Window *w, WindowEvent *e)
i++;
}
}
- gd.num_dataset = numd;
+
+ gd.num_dataset = numd + 1;
DrawGraph(&gd);
break;
@@ -859,8 +861,8 @@ static void CompanyValueGraphWndProc(Window *w, WindowEvent *e)
i++;
}
}
- gd.num_dataset = numd;
+ gd.num_dataset = numd + 1;
DrawGraph(&gd);
break;