From c7c6894dcede6778f311171f1128024b5ba97d84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 29 Jun 2013 23:24:52 +0300 Subject: fix working with protected items by automatic checks. --- src/playerinfo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/playerinfo.cpp') 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::const_iterator it = mProtectedItems.begin(); std::set::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)); -- cgit v1.2.3-60-g2f50