Skip to content

Commit

Permalink
Merge pull request #34188 from mlangsdorf/npc_wield_fix
Browse files Browse the repository at this point in the history
NPCs: uncache weapon value on weapon removal
  • Loading branch information
ZhilkinSerg authored Sep 22, 2019
2 parents 2c0e8e6 + fc7ae57 commit 371146b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,7 @@ item Character::remove_weapon()
{
item tmp = weapon;
weapon = item();
cached_info.erase( "weapon_value" );
return tmp;
}

Expand Down

0 comments on commit 371146b

Please sign in to comment.