From bc513719b4e07cebe4f91a69b7515e79695628be Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Sun, 22 Feb 2015 16:19:09 +0100 Subject: [PATCH] Fix for coverity #29402 --- src/object/player.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/object/player.cpp b/src/object/player.cpp index a891b80f7e1..f661134c54a 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -981,8 +981,6 @@ Player::try_grab() // make sure the Portable is a MovingObject MovingObject* moving_object = dynamic_cast (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;