From 3d447679df26179b7ffa781c34f5277e6a1aec29 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Apr 2011 18:38:52 +0300 Subject: Dont compile manaserv related code if manaserv support disabled. --- src/gui/sell.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/sell.cpp') diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index de1da395c..1a1fa60e0 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -222,9 +222,11 @@ void SellDialog::action(const gcn::ActionEvent &event) itemIndex = item->getCurrentInvIndex(); sellCount = item->sellCurrentDuplicate(mAmountItems); +#ifdef MANASERV_SUPPORT // For Manaserv, the Item id is to be given as index. if ((Net::getNetworkType() == ServerInfo::MANASERV)) itemIndex = item->getId(); +#endif Net::getNpcHandler()->sellItem(mNpcId, itemIndex, sellCount); mAmountItems -= sellCount; -- cgit v1.2.3-60-g2f50