summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 543082e7..b3d0b059 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -478,7 +478,10 @@ void Viewport::mouseMoved(gcn::MouseEvent &event)
const int y = (event.getY() + (int) mPixelViewY);
mSelectedBeing = beingManager->findBeingByPixel(x, y);
- mBeingPopup->setBeing(getMouseX(), getMouseY(), mSelectedBeing);
+ if (Player *p = dynamic_cast<Player*>(mSelectedBeing))
+ {
+ mBeingPopup->show(getMouseX(), getMouseY(), p);
+ }
}
void Viewport::toggleDebugPath()