From: Tobias Markus Date: Sun, 22 Feb 2015 15:19:09 +0000 (+0100) Subject: Fix for coverity #29402 X-Git-Url: https://git.octo.it/?p=supertux.git;a=commitdiff_plain;h=bc513719b4e07cebe4f91a69b7515e79695628be Fix for coverity #29402 --- diff --git a/src/object/player.cpp b/src/object/player.cpp index a891b80f7..f661134c5 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;