summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-30 11:05:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-30 11:05:22 +0300
commit02b61ee41a7dca0a29a32ceb136284b071d08f60 (patch)
treec1179a7c8be20c5b49d33d93db23c714658ec245 /src/gui/viewport.cpp
parent8983700f6c8cc6496626ed3af235e1ec31fe5501 (diff)
downloadplus-02b61ee41a7dca0a29a32ceb136284b071d08f60.tar.gz
plus-02b61ee41a7dca0a29a32ceb136284b071d08f60.tar.bz2
plus-02b61ee41a7dca0a29a32ceb136284b071d08f60.tar.xz
plus-02b61ee41a7dca0a29a32ceb136284b071d08f60.zip
Fix possible crash
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp2
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