summaryrefslogtreecommitdiff
path: root/src/disaster_vehicle.cpp
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2021-04-10 13:44:17 +0100
committerGitHub <noreply@github.com>2021-04-10 13:44:17 +0100
commitc50626319765e85efeb2e327cb401c807d5a26f3 (patch)
tree2c417a6b76a211ee886ccc1782b70888e019ff6f /src/disaster_vehicle.cpp
parent47c04033200c58671f31b1df0ad474f37bfb1864 (diff)
downloadopenttd-c50626319765e85efeb2e327cb401c807d5a26f3.tar.xz
Fix #8956: Industry disaster news messages showed the wrong location (#8992)
Diffstat (limited to 'src/disaster_vehicle.cpp')
-rw-r--r--src/disaster_vehicle.cpp2
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) {