Skip to content

Commit

Permalink
Merge pull request #35877 from CleverRaven/clang-appease-2019-12-05
Browse files Browse the repository at this point in the history
Appease clang (2019-12-05)
  • Loading branch information
ZhilkinSerg committed Dec 6, 2019
2 parents 34ac4b8 + 04faaba commit d349a0b
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 d349a0b

Please sign in to comment.