summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index c56bdfc8..205a768f 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -174,8 +174,12 @@ void PopupMenu::handleLink(const std::string& link)
}
// Add Buddy action
- else if (link == "buddy")
+ else if ((link == "buddy") && being && being->isPlayer())
{
+ if(!buddyWindow->isVisible())
+ buddyWindow->setVisible(true);
+
+ buddyWindow->addBuddy(being->name);
}
// Pick Up Floor Item action