Unconditionally notify YAPF of track layout change in ChangeOwnershipOfCompanyItems

This commit is contained in:
Jonathan G Rennison
2019-05-16 20:13:36 +01:00
parent e881828d00
commit ddd48b61a2

View File

@@ -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();