Fix for coverity #29402
authorTobias Markus <tobbi.bugs@googlemail.com>
Sun, 22 Feb 2015 15:19:09 +0000 (16:19 +0100)
committerTobias Markus <tobbi.bugs@googlemail.com>
Sun, 22 Feb 2015 15:19:09 +0000 (16:19 +0100)
src/object/player.cpp

index a891b80..f661134 100644 (file)
@@ -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;