Fix rail platforms being left partially reserved after deleting train

Due to company being removed when infrastructure sharing in use
This commit is contained in:
Jonathan G Rennison
2023-05-01 12:34:57 +01:00
parent aa28fcf7de
commit dc56add6a3
3 changed files with 15 additions and 3 deletions

View File

@@ -6831,6 +6831,7 @@ void DeleteVisibleTrain(Train *v)
/* delete train from back to front */
Train *u;
Train *prev = v->Last();
FreeTrainStationPlatformReservation(v);
do {
u = prev;
prev = u->Previous();