NPC reading activity segfault #35352
Labels
<Crash / Freeze>
Fatal bug that results in hangs or crashes.
Mechanics: Character / Player
Character / Player mechanics
NPC / Factions
NPCs, AI, Speech, Factions, Ownership
(S2 - Confirmed)
Bug that's been confirmed to exist
Milestone
Describe the bug
NPC follower that was asked to read a book will crash the game if you take the book from his inventory or save/load occurs before he finishes reading a chapter.
Steps To Reproduce
src/item_location.cpp:97 [void item_location::impl::ensure_unpacked() const] item_location lost its target item during a save/load cycle
Alternatively
4. Load the attached world, ask him to stop his current activity.
5. Ask him to read about High Explosives again.
6. Trade the High Explosives book off him using the trade dialog.
7. Wait ten minutes, game crashes, no debug message this time.
Expected behavior
NPCs should keep proper track of their books in savefiles and cuss out shifty players who try to take books they're currently reading.
Screenshots
Versions and configuration
Dark Days Ahead [dda]
]
Additional context
save.zip
Doesn't seem to be a recent bug, all of my mystery builds from 2-3 weeks ago also segfault.
The text was updated successfully, but these errors were encountered: