Fix deleting road vehicle in bay stop not unmarking as occupied

This commit is contained in:
Jonathan G Rennison
2024-02-21 22:25:56 +00:00
parent 53b06a3d04
commit 16d77d9268
2 changed files with 2 additions and 5 deletions

View File

@@ -536,9 +536,6 @@ static void DeleteLastRoadVeh(RoadVehicle *v)
u->SetNext(nullptr);
v->last_station_visited = first->last_station_visited; // for PreDestructor
/* Only leave the road stop when we're really gone. */
if (IsInsideMM(v->state, RVSB_IN_ROAD_STOP, RVSB_IN_ROAD_STOP_END)) RoadStop::GetByTile(v->tile, GetRoadStopType(v->tile))->Leave(v);
delete v;
}