We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223dae3 commit fbd4304Copy full SHA for fbd4304
src/kill_tracker.cpp
@@ -124,7 +124,7 @@ void kill_tracker::notify( const cata::event &e )
124
case event_type::character_kills_character: {
125
const character_id killer_id = e.get<character_id>( "killer" );
126
// player is credited for NPC kills they or their followers make
127
- if( get_avatar_or_follower( killer_id ) ) {
+ if( Character *killer = get_avatar_or_follower( killer_id ) ) {
128
const std::string victim_name = e.get<cata_variant_type::string>( "victim_name" );
129
npc_kills.push_back( victim_name );
130
// Legacy value update, maintained until kill_xp rework/removal from dependent in-repo mods
0 commit comments