From aff7a9e953a1b80d0902c4a47420affee47e8ece Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 16 May 2009 18:28:31 +0000 Subject: (svn r16320) -Fix (r11939): loading of savegames created in revision between 0.3.5 and 0.3.6 caused crash --- src/saveload/order_sl.cpp | 4 ++-- 1 file 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(len + 1); + len /= sizeof(uint32); + uint32 *orders = MallocT(len + 1); SlArray(orders, len, SLE_UINT32); -- cgit v1.2.3-70-g09d2