1
0
Fork 0

(svn r17419) -Fix (r-old, r16378): the index of orders loaded from old savegames was owerwritten with an unitialized value, causing asserts. The issue has present for a long time but only since the new pool system did it trigger a (correct) assert

release/1.0
yexo 2009-09-04 22:25:12 +00:00
parent 677946a368
commit ae9441aa46
1 changed files with 2 additions and 1 deletions

View File

@ -607,7 +607,8 @@ static bool LoadOldOrder(LoadgameState *ls, int num)
{
if (!LoadChunk(ls, NULL, order_chunk)) return false;
Order *o = new (num) Order(UnpackOldOrder(_old_order));
Order *o = new (num) Order();
o->AssignOrder(UnpackOldOrder(_old_order));
if (o->IsType(OT_NOTHING)) {
delete o;