summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-06-06 14:46:50 +0000
committerfrosch <frosch@openttd.org>2009-06-06 14:46:50 +0000
commit5b497d6b4963303ea77259c5c471ae06fb15c6ca (patch)
treee1ab3e86398ba2801ad55c202a3f6b3708e14639 /src/vehicle.cpp
parentec3ef70adb40d9ff371082a7360652d58e425284 (diff)
downloadopenttd-5b497d6b4963303ea77259c5c471ae06fb15c6ca.tar.xz
(svn r16525) -Codechange: Notify small ufos on deletion of road vehicles, so they can head for somewhere else instead of stumbling over a ghost.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 19cd6021a..92248b95c 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -554,6 +554,8 @@ void Vehicle::PreDestructor()
extern void StopGlobalFollowVehicle(const Vehicle *v);
StopGlobalFollowVehicle(this);
+
+ ReleaseDisastersTargetingVehicle(this->index);
}
Vehicle::~Vehicle()