From 0680f936ce4be3cbd0cba338d3793d4a7782db60 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 16 Sep 2011 13:43:33 +0300 Subject: Fix crash in context menu. --- src/gui/popupmenu.cpp | 15 ++------------- 1 file 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---"); } -- cgit v1.2.3-70-g09d2