summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-05 00:35:55 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-05 00:35:55 +0300
commit55cfc856a68604c93779ed8017f052b54b2e7c03 (patch)
tree6d6466aa950a8524d23624d6427d51204d0f533b /src
parent7565f7ee83bd80cd571eb247d3440c1c85144b8a (diff)
downloadmanaverse-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.gz
manaverse-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.bz2
manaverse-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.xz
manaverse-55cfc856a68604c93779ed8017f052b54b2e7c03.zip
not allow use protected item from shortcuts bar.
Diffstat (limited to 'src')
-rw-r--r--src/itemshortcut.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 0ca90e9be..b373b5cd4 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -142,7 +142,8 @@ void ItemShortcut::useItem(const int index) const
}
else
{
- Net::getInventoryHandler()->useItem(item);
+ if (!PlayerInfo::isItemProtected(item->getId()))
+ Net::getInventoryHandler()->useItem(item);
}
}
}