diff options
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r-- | src/actorspritemanager.cpp | 5 |
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; |