summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-16 13:43:33 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-16 13:43:33 +0300
commit0680f936ce4be3cbd0cba338d3793d4a7782db60 (patch)
treeaea78503d0ed8d5659cd81e9496efeef69ea49e3 /src/gui
parent2af5e3f72aef14b5b541b7c47878e0a13a343b85 (diff)
downloadmanaverse-0680f936ce4be3cbd0cba338d3793d4a7782db60.tar.gz
manaverse-0680f936ce4be3cbd0cba338d3793d4a7782db60.tar.bz2
manaverse-0680f936ce4be3cbd0cba338d3793d4a7782db60.tar.xz
manaverse-0680f936ce4be3cbd0cba338d3793d4a7782db60.zip
Fix crash in context menu.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popupmenu.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp
index 715b1d983..16e3d9ec7 100644
--- a/src/gui/popupmenu.cpp
+++ b/src/gui/popupmenu.cpp
@@ -736,19 +736,8 @@ void PopupMenu::showChatPopup(int x, int y, ChatTab *tab)
if (player_relations.getDefault() & PlayerRelation::TRADE)
{
mBrowserBox->addRow("##3---");
- if (being->isAdvanced())
- {
- if (being->isShopEnabled())
- {
- mBrowserBox->addRow("buy", _("Buy"));
- mBrowserBox->addRow("sell", _("Sell"));
- }
- }
- else
- {
- mBrowserBox->addRow("buy", _("Buy (?)"));
- mBrowserBox->addRow("sell", _("Sell (?)"));
- }
+ mBrowserBox->addRow("buy", _("Buy (?)"));
+ mBrowserBox->addRow("sell", _("Sell (?)"));
}
mBrowserBox->addRow("##3---");
}