mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r22047) -Fix: selling a vehicle triggered the assert added in r22041
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user