Fix DeleteVisibleTrain being called on virtual trains
Add assertion to check for this case
This commit is contained in:
@@ -4754,6 +4754,8 @@ void DeleteVisibleTrain(Train *v)
|
||||
{
|
||||
SCOPE_INFO_FMT([v], "DeleteVisibleTrain: %s", scope_dumper().VehicleInfo(v));
|
||||
|
||||
assert(!v->IsVirtual());
|
||||
|
||||
FreeTrainTrackReservation(v);
|
||||
TileIndex crossing = TrainApproachingCrossingTile(v);
|
||||
|
||||
|
Reference in New Issue
Block a user