Skip to content

Commit

Permalink
Appease clang
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg authored Jan 14, 2020
1 parent 1fb22bc commit 7031c7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,10 +683,10 @@ void Creature::deal_projectile_attack( Creature *source, dealt_projectile_attack
// if its a tameable animal, its a good way to catch them if they are running away, like them ranchers do!
// we assume immediate success, then certain monster types immediately break free in monster.cpp move_effects()
if( z ) {
if( !proj.get_drop().is_null() ) {
const item &drop_item = proj.get_drop();
if( !drop_item.is_null() ) {
z->add_effect( effect_tied, 1_turns, num_bp, true );
item drop_item = proj.get_drop();
z->tied_item = cata::make_value<item>( proj.get_drop() );
z->tied_item = cata::make_value<item>( drop_item );
} else {
add_msg( m_debug, "projectile with TANGLE effect, but no drop item specified" );
}
Expand Down

0 comments on commit 7031c7d

Please sign in to comment.