summaryrefslogtreecommitdiff
path: root/src/actions/target.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/target.cpp')
-rw-r--r--src/actions/target.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/actions/target.cpp b/src/actions/target.cpp
index f4a177b5d..4e0b46cd3 100644
--- a/src/actions/target.cpp
+++ b/src/actions/target.cpp
@@ -89,11 +89,13 @@ impHandler0(contextMenu)
{
if (!localPlayer)
return false;
- Being *const target = localPlayer->getTarget();
+ const Being *const target = localPlayer->getTarget();
if (!target)
return true;
- popupMenu->showPopup(target->getPixelX(), target->getPixelY(), target);
+ popupMenu->showPopup(target->getPixelX(),
+ target->getPixelY(),
+ target);
return true;
}