diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-25 18:38:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-25 18:38:52 +0300 |
commit | 3d447679df26179b7ffa781c34f5277e6a1aec29 (patch) | |
tree | 242365d32770a89448130684ad7ed2bf00c22561 /src/gui/sell.cpp | |
parent | 8c8f9f6cf53a6d5b8d9d72f4860921b3325a7696 (diff) | |
download | plus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.gz plus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.bz2 plus-3d447679df26179b7ffa781c34f5277e6a1aec29.tar.xz plus-3d447679df26179b7ffa781c34f5277e6a1aec29.zip |
Dont compile manaserv related code if manaserv support disabled.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |