summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-24 22:48:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-24 22:48:35 +0300
commitb474de4a54c9b1d4d863971e40b807588d554436 (patch)
tree761e71f86ea232d1688ee2838bd2294c59dea947 /src/itemshortcut.cpp
parenta316d537dce50f4b4e1e10f5c26a7851baddbd8b (diff)
downloadmanaverse-b474de4a54c9b1d4d863971e40b807588d554436.tar.gz
manaverse-b474de4a54c9b1d4d863971e40b807588d554436.tar.bz2
manaverse-b474de4a54c9b1d4d863971e40b807588d554436.tar.xz
manaverse-b474de4a54c9b1d4d863971e40b807588d554436.zip
replace defines to consts.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 10fa20a50..3eb2bea42 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -71,7 +71,7 @@ void ItemShortcut::load(bool oldConfig)
name = "shortcut";
color = "shortcutColor";
}
- for (int i = 0; i < SHORTCUT_ITEMS; i++)
+ for (unsigned int i = 0; i < SHORTCUT_ITEMS; i++)
{
int itemId = cfg->getValue(name + toString(i), -1);
unsigned char itemColor = static_cast<unsigned char>(
@@ -99,7 +99,7 @@ void ItemShortcut::save()
logger->log("save %s", name.c_str());
- for (int i = 0; i < SHORTCUT_ITEMS; i++)
+ for (unsigned int i = 0; i < SHORTCUT_ITEMS; i++)
{
const int itemId = mItems[i] ? mItems[i] : -1;
const int itemColor = mItemColors[i] ? mItemColors[i] : 1;