From 96b8bcd046ad70a5630f60a1d38571e380f5afa2 Mon Sep 17 00:00:00 2001 From: GalacticApple <87950676+GalacticApple@users.noreply.github.com> Date: Wed, 26 Jun 2024 19:19:58 -0400 Subject: [PATCH] Update src/trapfunc.cpp Co-authored-by: anothersimulacrum --- src/trapfunc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/trapfunc.cpp b/src/trapfunc.cpp index 38e83d4d8c352..c60250fcc3f47 100644 --- a/src/trapfunc.cpp +++ b/src/trapfunc.cpp @@ -325,8 +325,7 @@ bool trapfunc::caltrops_glass( const tripoint &p, Creature *c, item * ) z->deal_damage( nullptr, bodypart_id( "foot_r" ), damage_instance( damage_cut, rng( 9, 15 ) ) ); } else { for( const bodypart_id &bp : c->get_ground_contact_bodyparts() ) { - dealt_damage_instance dd = c->deal_damage( nullptr, bp, damage_instance( damage_cut, rng( 9, - 30 ) ) ); + c->deal_damage( nullptr, bp, damage_instance( damage_cut, rng( 9, 30 ) ) ); } } c->check_dead_state();