From 55cfc856a68604c93779ed8017f052b54b2e7c03 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Jul 2013 00:35:55 +0300 Subject: not allow use protected item from shortcuts bar. --- src/itemshortcut.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/itemshortcut.cpp') 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); } } } -- cgit v1.2.3-60-g2f50