(svn r22047) -Fix: selling a vehicle triggered the assert added in r22041

This commit is contained in:
yexo 2011-02-10 13:17:24 +00:00
parent d762b17f40
commit 26ccf93dd9

View File

@ -111,7 +111,9 @@ void OrderBackup::DoRestore(Vehicle *v)
FOR_ALL_ORDER_BACKUPS(ob) {
if (ob->user == user) delete ob;
}
new OrderBackup(v, user);
if (OrderBackup::CanAllocateItem()) {
new OrderBackup(v, user);
}
}
/**