Unconditionally notify YAPF of track layout change in ChangeOwnershipOfCompanyItems

pull/91/head
Jonathan G Rennison 5 years ago
parent e881828d00
commit ddd48b61a2

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

Loading…
Cancel
Save