summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r--src/playerinfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp
index f2e933a24..4e780f4df 100644
--- a/src/playerinfo.cpp
+++ b/src/playerinfo.cpp
@@ -359,8 +359,10 @@ static void saveProtectedItems()
std::set<int>::const_iterator it = mProtectedItems.begin();
std::set<int>::const_iterator it_end = mProtectedItems.end();
if (it != it_end)
+ {
str.append(toString(*it));
- ++ it;
+ ++ it;
+ }
while (it != it_end)
{
str.append(",").append(toString(*it));