summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-16 18:28:31 +0000
committersmatz <smatz@openttd.org>2009-05-16 18:28:31 +0000
commitaff7a9e953a1b80d0902c4a47420affee47e8ece (patch)
tree39081d098ffadcd716a5cc2fa5d13ebf3471e5a0
parentf9930e190b8d1e6a385827efc17a2f2bf64e2073 (diff)
downloadopenttd-aff7a9e953a1b80d0902c4a47420affee47e8ece.tar.xz
(svn r16320) -Fix (r11939): loading of savegames created in revision between 0.3.5 and 0.3.6 caused crash
-rw-r--r--src/saveload/order_sl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/order_sl.cpp b/src/saveload/order_sl.cpp
index 8579746ce..dc583a371 100644
--- a/src/saveload/order_sl.cpp
+++ b/src/saveload/order_sl.cpp
@@ -140,8 +140,8 @@ static void Load_ORDR()
free(orders);
} else if (CheckSavegameVersionOldStyle(5, 2)) {
- len /= sizeof(uint16);
- uint16 *orders = MallocT<uint16>(len + 1);
+ len /= sizeof(uint32);
+ uint32 *orders = MallocT<uint32>(len + 1);
SlArray(orders, len, SLE_UINT32);