Issue description
When modifying a loaded train by removing cars, resources are deleted not only from the removed cars but also from the remaining ones.
Initial train setup:
2 loose storage cars (loaded with uranium ore)
4 flatbed cars (loaded with wood)
After removing the first 2 loose storage cars and leaving only the 4 flatbeds:
Uranium ore from removed cars was deleted (expected issue)
Additionally, wood from the first 2 remaining flatbed cars was also deleted (unexpected)
This suggests that cargo in the first positions of the train is lost after modifying the composition.
Reproduction steps
Reproduction steps
- Load a train with loose material (e.g. uranium ore) in the first cars
- Load flatbed cars (e.g. wood) behind them
- Ensure all cars are fully loaded
- Replace the train removing the first cars with loose material
- Observe that:
Uranium ore is deleted
Wood from the first remaining flatbed cars is also deleted
Remaining cars further back keep their cargo
Expected behavior
Uranium ore from removed loose storage cars should be moved back into the depot / storage
Wood in the remaining flatbed cars should stay intact and must not be deleted
Only the removed wagons should be affected by the replacement
Game version and build number
v0.8.3 (b575)
Operating system
Windows
Attachments

