From 9205a313d4336ce41e36e4226a3e65f2325bda36 Mon Sep 17 00:00:00 2001 From: HadeanLake Date: Fri, 30 Aug 2024 13:12:53 +0300 Subject: [PATCH] remove redundant code --- src/mattack_actors.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mattack_actors.cpp b/src/mattack_actors.cpp index ad3776ea759ef..b4e5bab977175 100644 --- a/src/mattack_actors.cpp +++ b/src/mattack_actors.cpp @@ -614,8 +614,6 @@ int melee_actor::do_grab( monster &z, Creature *target, bodypart_id bp_id ) cons std::set intersect; std::set_intersection( neighbors.begin(), neighbors.end(), candidates.begin(), candidates.end(), std::inserter( intersect, intersect.begin() ) ); - std::set::iterator intersect_iter = intersect.begin(); - std::advance( intersect_iter, rng( 0, intersect.size() - 1 ) ); tripoint target_square = random_entry>( intersect ); if( z.can_move_to( target_square ) ) { monster *zz = target->as_monster();