From 78cab005ab427e64ccdf8ba8f6ca7d4c6f6bd4b4 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 10 Apr 2009 18:03:50 -0600 Subject: Fix popup to prevent an item from showing on warps --- src/gui/popupmenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 12531d89..e8af3122 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -75,7 +75,8 @@ void PopupMenu::showPopup(int x, int y, Being *being) mBrowserBox->clearRows(); // Any being's name can be added to chat - mBrowserBox->addRow(_("@@name|Add name to chat@@")); + if (being->getType() != Being::UNKNOWN) + mBrowserBox->addRow(_("@@name|Add name to chat@@")); switch (being->getType()) { -- cgit v1.2.3-70-g09d2