summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-06 18:03:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-06 20:52:08 +0300
commitf0ae9007f666580259ca8c120f7aaee58a63f85a (patch)
treefebc9da1d2ee1a5d3f85096727cd8c26d036ea5e /src/itemshortcut.cpp
parentf7c9165e0f59a33404a486c0b154a2c21ed9a9fa (diff)
downloadManaVerse-f0ae9007f666580259ca8c120f7aaee58a63f85a.tar.gz
ManaVerse-f0ae9007f666580259ca8c120f7aaee58a63f85a.tar.bz2
ManaVerse-f0ae9007f666580259ca8c120f7aaee58a63f85a.tar.xz
ManaVerse-f0ae9007f666580259ca8c120f7aaee58a63f85a.zip
Fix code style.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 9cce55eb7..aa78065c9 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -74,9 +74,8 @@ void ItemShortcut::load(bool oldConfig)
}
for (int i = 0; i < SHORTCUT_ITEMS; i++)
{
- int itemId = static_cast<int>(cfg->getValue(name + toString(i), -1));
- int itemColor = static_cast<int>(
- cfg->getValue(color + toString(i), 1));
+ int itemId = cfg->getValue(name + toString(i), -1);
+ int itemColor = cfg->getValue(color + toString(i), 1);
mItems[i] = itemId;
mItemColors[i] = itemColor;