mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-19 13:41:11 +00:00
(svn r22047) -Fix: selling a vehicle triggered the assert added in r22041
This commit is contained in:
parent
b7713a7e85
commit
421ba1c342
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user