Unconditionally notify YAPF of track layout change in ChangeOwnershipOfCompanyItems
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
#include "tracerestrict.h"
|
||||
#include "tbtr_template_vehicle.h"
|
||||
#include "scope_info.h"
|
||||
#include "pathfinder/yapf/yapf_cache.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
#include "table/pricebase.h"
|
||||
@@ -594,6 +595,8 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
|
||||
|
||||
IntialiseOrderDestinationRefcountMap();
|
||||
|
||||
YapfNotifyTrackLayoutChange(INVALID_TILE, INVALID_TRACK);
|
||||
|
||||
cur_company.Restore();
|
||||
|
||||
MarkWholeScreenDirty();
|
||||
|
Reference in New Issue
Block a user