diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-23 12:39:13 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-24 19:26:13 +0100 |
commit | ce10d9be3f3ae1422e4e1f79fc5c867ab38526e7 (patch) | |
tree | f2f38a9ccc503f04c0a7667703c405ab3cdb8443 /src/station.cpp | |
parent | 3860a2ce2acf3e295af087c4ca3bb409a61632fc (diff) | |
download | openttd-ce10d9be3f3ae1422e4e1f79fc5c867ab38526e7.tar.xz |
Fix #7374: Ensure k-d trees are always updated when station sign moves
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station.cpp b/src/station.cpp index 3c50ef94f..6f10806a4 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -207,7 +207,7 @@ RoadStop *Station::GetPrimaryRoadStop(const RoadVehicle *v) const void Station::AddFacility(StationFacility new_facility_bit, TileIndex facil_xy) { if (this->facilities == FACIL_NONE) { - this->xy = facil_xy; + this->MoveSign(facil_xy); this->random_bits = Random(); } this->facilities |= new_facility_bit; |