1
0
Fork 0

Codefix df691eb3: Reloading GRFs destructed small UFO targeting road vehicle (#12072)

pull/11140/head
Jonathan G Rennison 2024-02-12 00:51:18 +00:00 committed by GitHub
parent 481fa7dbb5
commit 5ab5f4ace7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ void AfterLoadVehicles(bool part_of_load)
RoadVehicle *u = RoadVehicle::GetIfValid(v->dest_tile.base());
if (u != nullptr && u->IsFrontEngine()) {
/* Delete UFO targetting a vehicle which is already a target. */
if (u->disaster_vehicle != INVALID_VEHICLE) {
if (u->disaster_vehicle != INVALID_VEHICLE && u->disaster_vehicle != dv->index) {
delete v;
continue;
} else {