Fix #10502: Refit engine before attaching free wagons. (#10926)

Caused by incorrect order of operations when buying a train engine with refit and attaching free wagons.

(cherry picked from commit ee2d0745e9)
This commit is contained in:
PeterN
2023-06-04 15:57:36 +01:00
committed by Jonathan G Rennison
parent 5c2f9dffe6
commit 98788e865f
6 changed files with 22 additions and 22 deletions

View File

@@ -90,6 +90,7 @@ void CheckBreakdownFlags(Train *v);
void GetTrainSpriteSize(EngineID engine, uint &width, uint &height, int &xoffs, int &yoffs, EngineImageType image_type);
bool TrainOnCrossing(TileIndex tile);
void NormalizeTrainVehInDepot(const Train *u);
inline int GetTrainRealisticBrakingTargetDecelerationLimit(int acceleration_type)
{