Changeset - r28221:cf6a2f44958c
[Not reviewed]
master
0 2 0
Peter Nelson - 12 months ago 2023-12-02 21:46:43
peter1138@openttd.org
Fix 67d071d: WC_STATION_LIST should be invalidated by owner, not station index. (#11530)
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -1933,8 +1933,8 @@ static void LoadUnloadVehicle(Vehicle *f
 
	}
 
	if (dirty_station) {
 
		st->MarkTilesDirty(true);
 
		SetWindowDirty(WC_STATION_VIEW, last_visited);
 
		InvalidateWindowData(WC_STATION_LIST, last_visited);
 
		SetWindowDirty(WC_STATION_VIEW, st->index);
 
		InvalidateWindowData(WC_STATION_LIST, st->owner);
 
	}
 
}
 

	
src/station_cmd.cpp
Show inline comments
 
@@ -4055,7 +4055,7 @@ static uint UpdateStationWaiting(Station
 
	if (lg != nullptr) (*lg)[ge.node].UpdateSupply(amount);
 

	
 
	if (!ge.HasRating()) {
 
		InvalidateWindowData(WC_STATION_LIST, st->index);
 
		InvalidateWindowData(WC_STATION_LIST, st->owner);
 
		SetBit(ge.status, GoodsEntry::GES_RATING);
 
	}
 

	
0 comments (0 inline, 0 general)