diff options
Diffstat (limited to 'src/gui/shortcut/itemshortcut.cpp')
-rw-r--r-- | src/gui/shortcut/itemshortcut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp index 8c091f8c1..f47bfd296 100644 --- a/src/gui/shortcut/itemshortcut.cpp +++ b/src/gui/shortcut/itemshortcut.cpp @@ -121,9 +121,9 @@ void ItemShortcut::save() const { const int itemId = mItems[i] != 0 ? mItems[i] : -1; const int itemColor = toInt(mItemColors[i], int); - const std::string itemData = mItemData[i]; if (itemId != -1) { + const std::string itemData = mItemData[i]; serverConfig.setValue(name + toString(i), itemId); serverConfig.setValue(color + toString(i), itemColor); serverConfig.setValue(data + toString(i), itemData); |