summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-05-16 17:38:59 +0000
committerrubidium <rubidium@openttd.org>2014-05-16 17:38:59 +0000
commit9270d94e7e116cc613bccd69d3b4bda887c54788 (patch)
treeacbdf215ccf8b3c2c15bd8d282ceb7453a2ad313 /src
parent78c4f246ce2552d4f5db6e56f80a14ef2abbb466 (diff)
downloadopenttd-9270d94e7e116cc613bccd69d3b4bda887c54788.tar.xz
(svn r26589) -Fix: SIGSEGV on all big endian architectures that tried to load e.g. the 1.4 intro game or anything else with more than 0 linkgraph nodes that was saved on little endian
Diffstat (limited to 'src')
-rw-r--r--src/saveload/linkgraph_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/linkgraph_sl.cpp b/src/saveload/linkgraph_sl.cpp
index d9b2b9093..4988eb2ed 100644
--- a/src/saveload/linkgraph_sl.cpp
+++ b/src/saveload/linkgraph_sl.cpp
@@ -23,7 +23,7 @@ typedef LinkGraph::BaseEdge Edge;
const SettingDesc *GetSettingDescription(uint index);
-static uint _num_nodes;
+static uint16 _num_nodes;
/**
* Get a SaveLoad array for a link graph.