From f52ab4a3f37137045be920bbefce8b223fc75b3a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jul 2016 19:13:36 +0300 Subject: Fix saving skills with maximum level into shortcuts bar. --- src/gui/shortcut/itemshortcut.cpp | 5 +---- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3-70-g09d2