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

This commit is contained in:
Peter Nelson
2023-12-02 21:46:43 +00:00
committed by GitHub
parent 1aedea8eda
commit a258833aee
2 changed files with 3 additions and 3 deletions

View File

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