From 91e74d8f1dc3f1fe01cb65822913488f5cbc5657 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Aug 2017 20:18:08 +0300 Subject: Use size_t type for index in itemshortcut. --- src/actions/commands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actions') 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, -- cgit v1.2.3-60-g2f50