Skip to content

Commit

Permalink
Remove redundant get() call on smart pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Dec 5, 2019
1 parent 34ac4b8 commit 04faaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ranged.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ static void update_targets( player &pc, int range, std::vector<Creature *> &targ
if( local_last_tgt_pos ) {
dst = *local_last_tgt_pos;
}
if( ( pc.last_target.expired() || !pc.sees( *pc.last_target.lock().get() ) ) &&
if( ( pc.last_target.expired() || !pc.sees( *pc.last_target.lock() ) ) &&
pc.has_activity( activity_id( "ACT_AIM" ) ) ) {
//We lost our target. Stop auto aiming.
pc.cancel_activity();
Expand Down

0 comments on commit 04faaba

Please sign in to comment.