Fake targeting NPC causes segfaults in unowned vehicles #34209
Labels
<Crash / Freeze>
Fatal bug that results in hangs or crashes.
(S1 - Need confirmation)
Report waiting on confirmation of reproducibility
Vehicles
Vehicles, parts, mechanics & interactions
Describe the bug
Loading a save, or a part of a map with an unowned vehicle (ie, saved before vehicle ownership went in), where an automatic turret is present on the vehicle, will cause a segfault as the game tries to assign the fake turret NPC to a faction.
I first encountered this as a segfault when playing an old save and entering a part of the map that contained the offending vehicle, but it can happen on first turn after game load as well.
Steps To Reproduce
Expected behavior
Either automatically assign the vehicle to Your Followers for minimum amount of nasty surprises, or disable the turret until the player claims the vehicle.
Versions and configuration
Additional context
Stack trace
Save
TESTWORLD3.tar.gz: This was saved with 0.D-5135-g41916c4fd6. When loaded with 0.D-7842-gcfc7f8a86d it crashes on first turn (press .).
The text was updated successfully, but these errors were encountered: