(svn r16320) -Fix (r11939): loading of savegames created in revision between 0.3.5 and 0.3.6 caused crash

This commit is contained in:
smatz 2009-05-16 18:28:31 +00:00
parent f9930e190b
commit aff7a9e953
1 changed files with 2 additions and 2 deletions

View File

@ -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);