summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-10-22 16:12:08 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-10-22 16:12:08 +0000
commitec2d36a4a40646e260f4fbcdcd984e278ce8387a (patch)
treef6f6698d4283c30ed93831f0c1c3313ebec8cd46 /src
parente99965aa151222df4e570c550c80846b493f8736 (diff)
downloadopenttd-ec2d36a4a40646e260f4fbcdcd984e278ce8387a.tar.xz
(svn r25897) -Fix: Dates are int32, not uint32, and should be saved as such.
Diffstat (limited to 'src')
-rw-r--r--src/saveload/linkgraph_sl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/saveload/linkgraph_sl.cpp b/src/saveload/linkgraph_sl.cpp
index 121934d8d..f7d2893ce 100644
--- a/src/saveload/linkgraph_sl.cpp
+++ b/src/saveload/linkgraph_sl.cpp
@@ -30,7 +30,7 @@ static uint _num_nodes;
const SaveLoad *GetLinkGraphDesc()
{
static const SaveLoad link_graph_desc[] = {
- SLE_VAR(LinkGraph, last_compression, SLE_UINT32),
+ SLE_VAR(LinkGraph, last_compression, SLE_INT32),
SLEG_VAR(_num_nodes, SLE_UINT16),
SLE_VAR(LinkGraph, cargo, SLE_UINT8),
SLE_END()
@@ -73,7 +73,7 @@ const SaveLoad *GetLinkGraphJobDesc()
}
const SaveLoad job_desc[] = {
- SLE_VAR(LinkGraphJob, join_date, SLE_UINT32),
+ SLE_VAR(LinkGraphJob, join_date, SLE_INT32),
SLE_VAR(LinkGraphJob, link_graph.index, SLE_UINT16),
SLE_END()
};
@@ -110,7 +110,7 @@ static const SaveLoad _node_desc[] = {
SLE_VAR(Node, supply, SLE_UINT32),
SLE_VAR(Node, demand, SLE_UINT32),
SLE_VAR(Node, station, SLE_UINT16),
- SLE_VAR(Node, last_update, SLE_UINT32),
+ SLE_VAR(Node, last_update, SLE_INT32),
SLE_END()
};
@@ -121,7 +121,7 @@ static const SaveLoad _edge_desc[] = {
SLE_VAR(Edge, distance, SLE_UINT32),
SLE_VAR(Edge, capacity, SLE_UINT32),
SLE_VAR(Edge, usage, SLE_UINT32),
- SLE_VAR(Edge, last_update, SLE_UINT32),
+ SLE_VAR(Edge, last_update, SLE_INT32),
SLE_VAR(Edge, next_edge, SLE_UINT16),
SLE_END()
};