diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-05 00:35:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-05 00:35:55 +0300 |
commit | 55cfc856a68604c93779ed8017f052b54b2e7c03 (patch) | |
tree | 6d6466aa950a8524d23624d6427d51204d0f533b | |
parent | 7565f7ee83bd80cd571eb247d3440c1c85144b8a (diff) | |
download | mv-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.gz mv-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.bz2 mv-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.xz mv-55cfc856a68604c93779ed8017f052b54b2e7c03.zip |
not allow use protected item from shortcuts bar.
-rw-r--r-- | src/itemshortcut.cpp | 3 |
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); } } } |