X-Git-Url: https://git.octo.it/?p=supertux.git;a=blobdiff_plain;f=src%2Fobject%2Fplayer.cpp;h=f661134c54a8039ec3291f22b4b17fc9dcc52e30;hp=a891b80f7e117f82ae755f9be47c83540141f2ac;hb=bc513719b4e07cebe4f91a69b7515e79695628be;hpb=5240d812e12e6b53dc3c36bf313361d2d457382a 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;