summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-08 20:18:08 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-08 20:18:08 +0300
commit91e74d8f1dc3f1fe01cb65822913488f5cbc5657 (patch)
tree7cd1485d11ca1915504ba6ed6e92c0d7ca0d97d0 /src/actions/commands.cpp
parentd1dcddb018c74aebf0ffb2bbde1501685372c2d8 (diff)
downloadManaVerse-91e74d8f1dc3f1fe01cb65822913488f5cbc5657.tar.gz
ManaVerse-91e74d8f1dc3f1fe01cb65822913488f5cbc5657.tar.bz2
ManaVerse-91e74d8f1dc3f1fe01cb65822913488f5cbc5657.tar.xz
ManaVerse-91e74d8f1dc3f1fe01cb65822913488f5cbc5657.zip
Use size_t type for index in itemshortcut.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index c74edbe43..03278c47f 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -2119,8 +2119,8 @@ impHandler(addSkillShortcut)
}
ItemShortcut *const selShortcut = itemShortcut[num];
- const int index = selShortcut->getFreeIndex();
- if (index < 0)
+ const size_t index = selShortcut->getFreeIndex();
+ if (index == SHORTCUT_ITEMS)
return true;
selShortcut->setItem(index,