summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 2a8e4ecf5..fa0d1dc18 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -822,13 +822,14 @@ void Configuration::removeOldKeys()
}
for (f = 0; f < 80; f ++)
{
- deleteKey("Outfit" + toString(f));
- deleteKey("OutfitUnequip" + toString(f));
- deleteKey("commandShortcutCmd" + toString(f));
- deleteKey("commandShortcutFlags" + toString(f));
- deleteKey("commandShortcutSymbol" + toString(f));
- deleteKey("drop" + toString(f));
- deleteKey("shortcut" + toString(f));
+ const std::string str = toString(f);
+ deleteKey("Outfit" + str);
+ deleteKey("OutfitUnequip" + str);
+ deleteKey("commandShortcutCmd" + str);
+ deleteKey("commandShortcutFlags" + str);
+ deleteKey("commandShortcutSymbol" + str);
+ deleteKey("drop" + str);
+ deleteKey("shortcut" + str);
}
}
}