Describe the bug
Through a specific procedure, different world objects with the same ID are recorded in the save data. This causes an error when the game is loaded. There is probably no actual harm though.
To Reproduce
Steps to reproduce the behavior:
- Dev quick start.
- Send out a vehicle caravan.
- Quit the game and start a new session.
- Create several world objects.
- Save/Load.
Screenshots
https://github.com/user-attachments/assets/84987201-d06c-4ebb-9a0b-491decfd94f5
Additional context
https://github.com/SmashPhil/Vehicle-Framework/blob/develop/Source/Vehicles/World/WorldObjects/VehicleWorldObjectsHolder.cs#L25
As mentioned in the comments, this issue will be automatically resolved once the statics are removed. But for now, I assume using Clear instead of RemoveAll in the constructor should be fine?
Well, this is quite the nitpicking. I suppose I could be a debugger.
Describe the bug
Through a specific procedure, different world objects with the same ID are recorded in the save data. This causes an error when the game is loaded. There is probably no actual harm though.
To Reproduce
Steps to reproduce the behavior:
Screenshots
https://github.com/user-attachments/assets/84987201-d06c-4ebb-9a0b-491decfd94f5
Additional context
https://github.com/SmashPhil/Vehicle-Framework/blob/develop/Source/Vehicles/World/WorldObjects/VehicleWorldObjectsHolder.cs#L25
As mentioned in the comments, this issue will be automatically resolved once the statics are removed. But for now, I assume using
Clearinstead ofRemoveAllin the constructor should be fine?Well, this is quite the nitpicking. I suppose I could be a debugger.