Skip to content

Commit

Permalink
Fix for coverity #29402
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 22, 2015
1 parent 5240d81 commit bc51371
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/object/player.cpp
Expand Up @@ -981,8 +981,6 @@ Player::try_grab()
// make sure the Portable is a MovingObject
MovingObject* moving_object = dynamic_cast<MovingObject*> (portable);
assert(moving_object);
if(moving_object == NULL)
continue;

// make sure the Portable isn't currently non-solid
if(moving_object->get_group() == COLGROUP_DISABLED) continue;
Expand Down

0 comments on commit bc51371

Please sign in to comment.