Skip to content

Commit

Permalink
Fix #8956: Industry disaster new messages showed the wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
LordAro committed Apr 10, 2021
1 parent 0cb99c5 commit 9dffe38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/disaster_vehicle.cpp
Expand Up @@ -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, v->dest_tile); // dest_tile is IndustryID
if (_settings_client.sound.disaster) SndPlayTileFx(SND_12_EXPLOSION, i->location.tile);
}
} else if (v->current_order.GetDestination() == 0) {
Expand Down

0 comments on commit 9dffe38

Please sign in to comment.