diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-08 20:18:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-08 20:18:08 +0300 |
commit | 91e74d8f1dc3f1fe01cb65822913488f5cbc5657 (patch) | |
tree | 7cd1485d11ca1915504ba6ed6e92c0d7ca0d97d0 /src/actions/commands.cpp | |
parent | d1dcddb018c74aebf0ffb2bbde1501685372c2d8 (diff) | |
download | manaverse-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.cpp | 4 |
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, |