diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-13 19:13:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-13 19:13:36 +0300 |
commit | f52ab4a3f37137045be920bbefce8b223fc75b3a (patch) | |
tree | a5c3d0e5d8d9913b3c43e82e241433b57fb83150 /src | |
parent | c676f4b880ed0abd644085e587e98e3f6ba1c16b (diff) | |
download | ManaVerse-s20160713.tar.gz ManaVerse-s20160713.tar.bz2 ManaVerse-s20160713.tar.xz ManaVerse-s20160713.zip |
Fix saving skills with maximum level into shortcuts bar.s20160713
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/shortcut/itemshortcut.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp index 4349f1c44..664f7e859 100644 --- a/src/gui/shortcut/itemshortcut.cpp +++ b/src/gui/shortcut/itemshortcut.cpp @@ -103,13 +103,10 @@ void ItemShortcut::save() const color = "shortcutColor"; } - logger->log("save %s", name.c_str()); - for (unsigned int i = 0; i < SHORTCUT_ITEMS; i++) { const int itemId = mItems[i] ? mItems[i] : -1; - const int itemColor = (mItemColors[i] != ItemColor_zero) ? - toInt(mItemColors[i], int) : 1; + const int itemColor = toInt(mItemColors[i], int); if (itemId != -1) { serverConfig.setValue(name + toString(i), itemId); |