diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-03-26 23:32:23 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-03-27 00:24:27 -0600 |
commit | 5d206f2cd27d9908fe27c3c84c866747eedce7dd (patch) | |
tree | ca6eca099721a8508b56cf852f763bbf13665821 | |
parent | 73e66042017a6421234d2a8293d0d5c2ca10055b (diff) | |
download | mana-client-5d206f2cd27d9908fe27c3c84c866747eedce7dd.tar.gz mana-client-5d206f2cd27d9908fe27c3c84c866747eedce7dd.tar.bz2 mana-client-5d206f2cd27d9908fe27c3c84c866747eedce7dd.tar.xz mana-client-5d206f2cd27d9908fe27c3c84c866747eedce7dd.zip |
Fix crash with showing BeingPopup
Reviewed-by: Freeyorp
-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 5edbe154..cd94a52d 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -459,7 +459,7 @@ void Viewport::mouseMoved(gcn::MouseEvent &event) const int y = (event.getY() + (int) mPixelViewY); mHoverBeing = beingManager->findBeingByPixel(x, y); - if (mHoverBeing->getType() == Being::PLAYER) + if (mHoverBeing && mHoverBeing->getType() == Being::PLAYER) mBeingPopup->show(getMouseX(), getMouseY(), static_cast<Player*>(mHoverBeing)); else |