Maintain map of vehicle order destinations refcounts, by type
This commit is contained in:
@@ -314,6 +314,8 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
|
||||
assert(old_owner != _local_company);
|
||||
}
|
||||
|
||||
ClearOrderDestinationRefcountMap();
|
||||
|
||||
Town *t;
|
||||
|
||||
assert(old_owner != new_owner);
|
||||
@@ -589,6 +591,8 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
|
||||
/* Change owner of deferred cargo payments */
|
||||
ChangeOwnershipOfCargoPacketDeferredPayments(old_owner, new_owner);
|
||||
|
||||
IntialiseOrderDestinationRefcountMap();
|
||||
|
||||
cur_company.Restore();
|
||||
|
||||
MarkWholeScreenDirty();
|
||||
|
Reference in New Issue
Block a user