summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actorspritemanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 4d4511476..525204008 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -431,8 +431,11 @@ void ActorSpriteManager::findBeingsByPixel(std::vector<ActorSprite*> &beings,
Being *being = dynamic_cast<Being*>(*it);
- if (being->getInfo() && !being->getInfo()->isTargetSelection())
+ if (being && being->getInfo()
+ && !being->getInfo()->isTargetSelection())
+ {
continue;
+ }
ActorSprite *actor = *it;