mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r22047) -Fix: selling a vehicle triggered the assert added in r22041
This commit is contained in:
parent
d762b17f40
commit
26ccf93dd9
@ -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