forked from mirror/OpenTTD
(svn r16525) -Codechange: Notify small ufos on deletion of road vehicles, so they can head for somewhere else instead of stumbling over a ghost.
This commit is contained in:
@@ -554,6 +554,8 @@ void Vehicle::PreDestructor()
|
||||
|
||||
extern void StopGlobalFollowVehicle(const Vehicle *v);
|
||||
StopGlobalFollowVehicle(this);
|
||||
|
||||
ReleaseDisastersTargetingVehicle(this->index);
|
||||
}
|
||||
|
||||
Vehicle::~Vehicle()
|
||||
|
Reference in New Issue
Block a user