projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5240d81
)
Fix for coverity #29402
author
Tobias Markus
<tobbi.bugs@googlemail.com>
Sun, 22 Feb 2015 15:19:09 +0000
(16:19 +0100)
committer
Tobias Markus
<tobbi.bugs@googlemail.com>
Sun, 22 Feb 2015 15:19:09 +0000
(16:19 +0100)
src/object/player.cpp
patch
|
blob
|
history
diff --git
a/src/object/player.cpp
b/src/object/player.cpp
index
a891b80
..
f661134
100644
(file)
--- 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<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;