diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2021-04-10 13:44:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-10 13:44:17 +0100 |
commit | c50626319765e85efeb2e327cb401c807d5a26f3 (patch) | |
tree | 2c417a6b76a211ee886ccc1782b70888e019ff6f | |
parent | 47c04033200c58671f31b1df0ad474f37bfb1864 (diff) | |
download | openttd-c50626319765e85efeb2e327cb401c807d5a26f3.tar.xz |
Fix #8956: Industry disaster news messages showed the wrong location (#8992)
-rw-r--r-- | src/disaster_vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_vehicle.cpp b/src/disaster_vehicle.cpp index c5d76877c..cc245b38f 100644 --- a/src/disaster_vehicle.cpp +++ b/src/disaster_vehicle.cpp @@ -456,7 +456,7 @@ static bool DisasterTick_Aircraft(DisasterVehicle *v, uint16 image_override, boo DestructIndustry(i); SetDParam(0, i->town->index); - AddTileNewsItem(news_message, NT_ACCIDENT, v->dest_tile); + AddIndustryNewsItem(news_message, NT_ACCIDENT, i->index); if (_settings_client.sound.disaster) SndPlayTileFx(SND_12_EXPLOSION, i->location.tile); } } else if (v->current_order.GetDestination() == 0) { |