Fix 67d071d: WC_STATION_LIST should be invalidated by owner, not station index. (#11530)

wip-string
Peter Nelson 6 months ago committed by GitHub
parent 1aedea8eda
commit a258833aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1933,8 +1933,8 @@ static void LoadUnloadVehicle(Vehicle *front)
}
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);
}
}

@ -4055,7 +4055,7 @@ static uint UpdateStationWaiting(Station *st, CargoID type, uint amount, SourceT
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);
}

Loading…
Cancel
Save