diff options
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index aa78065c9..ce6aedb59 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -75,7 +75,7 @@ void ItemShortcut::load(bool oldConfig) for (int i = 0; i < SHORTCUT_ITEMS; i++) { int itemId = cfg->getValue(name + toString(i), -1); - int itemColor = cfg->getValue(color + toString(i), 1); + unsigned char itemColor = cfg->getValue(color + toString(i), 1); mItems[i] = itemId; mItemColors[i] = itemColor; @@ -122,7 +122,7 @@ void ItemShortcut::useItem(int index) return; int itemId = mItems[index]; - int itemColor = mItemColors[index]; + unsigned char itemColor = mItemColors[index]; if (itemId >= 0) { if (itemId < SPELL_MIN_ID) |