diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-11 21:47:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-11 21:47:11 +0300 |
commit | aa629a5b28d83333d083cac24ee9ac815c2ea6e7 (patch) | |
tree | 85f4a683691e76ee4d13ee967a23803b38eb6613 /src/actorspritemanager.cpp | |
parent | f107cee8dd903cc539ecd88997d420332fcff4c0 (diff) | |
download | ManaVerse-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.tar.gz ManaVerse-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.tar.bz2 ManaVerse-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.tar.xz ManaVerse-aa629a5b28d83333d083cac24ee9ac815c2ea6e7.zip |
Fix random crashes in mouse right click actions.
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; |