diff options
Diffstat (limited to 'src/graph_gui.cpp')
-rw-r--r-- | src/graph_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 99c0941f6..152c66f43 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -64,7 +64,7 @@ struct GraphDrawer { uint height; ///< The height of the graph in pixels. StringID format_str_y_axis; byte colors[GRAPH_MAX_DATASETS]; - int64 cost[GRAPH_MAX_DATASETS][24]; ///< last 2 years + Money cost[GRAPH_MAX_DATASETS][24]; ///< last 2 years }; static void DrawGraph(const GraphDrawer *gw) @@ -132,7 +132,7 @@ static void DrawGraph(const GraphDrawer *gw) for (int i = 0; i < gw->num_dataset; i++) { if (!HASBIT(gw->excluded_data, i)) { for (int j = 0; j < gw->num_on_x_axis; j++) { - int64 datapoint = gw->cost[i][j]; + Money datapoint = gw->cost[i][j]; if (datapoint != INVALID_DATAPOINT) { /* For now, if the graph has negative values the scaling is @@ -214,7 +214,7 @@ static void DrawGraph(const GraphDrawer *gw) uint prev_y = INVALID_DATAPOINT_POS; for (int j = 0; j < gw->num_on_x_axis; j++) { - int64 datapoint = gw->cost[i][j]; + Money datapoint = gw->cost[i][j]; if (datapoint != INVALID_DATAPOINT) { /* XXX: This can overflow if x_axis_offset * datapoint is |