summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-11 21:47:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-11 21:47:11 +0300
commitaa629a5b28d83333d083cac24ee9ac815c2ea6e7 (patch)
tree85f4a683691e76ee4d13ee967a23803b38eb6613 /src
parentf107cee8dd903cc539ecd88997d420332fcff4c0 (diff)
downloadmv-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.tar.gz
mv-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.tar.bz2
mv-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.tar.xz
mv-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.zip
Fix random crashes in mouse right click actions.
Diffstat (limited to 'src')
-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;