Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Prevent segfault for npc get_restock_interval
* Prevents segfault that previously happened when choosing the talk option "Find anything good?" when talking to scrap trader. Previous problem was caused by: * `const npc *guy` was `nullptr` * This was in turn caused by `talker::get_character` returning `nullptr` * The reason for that `nullptr` was that `const talker &u` was of type `talker_character`, created from `get_talker_for( const Creature &me )` in `creature.cpp` * `talker_character` previously did not override `get_character`, so it used the default impl from `talker` which always returns `nullptr`. Therefore, this commit updates `talker_character` so that `get_character` returns a valid pointer.
- Loading branch information