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 /src | |
parent | 7565f7ee83bd80cd571eb247d3440c1c85144b8a (diff) | |
download | manaplus-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.gz manaplus-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.bz2 manaplus-55cfc856a68604c93779ed8017f052b54b2e7c03.tar.xz manaplus-55cfc856a68604c93779ed8017f052b54b2e7c03.zip |
not allow use protected item from shortcuts bar.
Diffstat (limited to 'src')
-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); } } } |