Replacing loaded wagons causes different type resource deletion

Fixed
kolorowywyzel [github] · 6 months ago

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

  1. Load a train with loose material (e.g. uranium ore) in the first cars
  2. Load flatbed cars (e.g. wood) behind them
  3. Ensure all cars are fully loaded
  4. Replace the train removing the first cars with loose material
  5. 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

Image

Image

Captain Filip Captain Filip · 15 days ago

This is fixed in the current version.

Closed as ✅ Fixed

7 Showing 1–2 of 2