diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-30 11:05:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-30 11:05:22 +0300 |
commit | 02b61ee41a7dca0a29a32ceb136284b071d08f60 (patch) | |
tree | c1179a7c8be20c5b49d33d93db23c714658ec245 | |
parent | 8983700f6c8cc6496626ed3af235e1ec31fe5501 (diff) | |
download | plus-02b61ee41a7dca0a29a32ceb136284b071d08f60.tar.gz plus-02b61ee41a7dca0a29a32ceb136284b071d08f60.tar.bz2 plus-02b61ee41a7dca0a29a32ceb136284b071d08f60.tar.xz plus-02b61ee41a7dca0a29a32ceb136284b071d08f60.zip |
Fix possible crash
-rw-r--r-- | src/gui/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index df97a5673..e013171d3 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -883,9 +883,9 @@ void Viewport::mouseMoved(MouseEvent &event A_UNUSED) const int y = mMouseY + mPixelViewY; ActorSprite::Type type = ActorSprite::UNKNOWN; + mHoverBeing = actorManager->findBeingByPixel(x, y, true); if (mHoverBeing) type = mHoverBeing->getType(); - mHoverBeing = actorManager->findBeingByPixel(x, y, true); if (mHoverBeing && (type == Being::PLAYER || type == Being::NPC |