summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHuynh Tran <nthuynh75@gmail.com>2005-07-01 05:32:30 +0000
committerHuynh Tran <nthuynh75@gmail.com>2005-07-01 05:32:30 +0000
commit4cf67a47d5859b315761fb4bedba11a5cba99308 (patch)
tree00b73e645ea3bb86effead5d02c6d58f1ceb45ae /src
parent38cfcdd2b7681fc32b1464a4905c721246cf6d75 (diff)
downloadmanaserv-4cf67a47d5859b315761fb4bedba11a5cba99308.tar.gz
manaserv-4cf67a47d5859b315761fb4bedba11a5cba99308.tar.bz2
manaserv-4cf67a47d5859b315761fb4bedba11a5cba99308.tar.xz
manaserv-4cf67a47d5859b315761fb4bedba11a5cba99308.zip
Fixed incorrect deletion in a map.
Diffstat (limited to 'src')
-rw-r--r--src/dalstorage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dalstorage.cpp b/src/dalstorage.cpp
index ca47c3f5..ca0cc417 100644
--- a/src/dalstorage.cpp
+++ b/src/dalstorage.cpp
@@ -350,22 +350,22 @@ DALStorage::flush(void)
switch ((it->second).status) {
case AS_NEW_ACCOUNT:
_addAccount(it->first);
+ ++it;
break;
case AS_ACC_TO_UPDATE:
_updAccount(it->first);
+ ++it;
break;
case AS_ACC_TO_DELETE:
_delAccount(it->first);
- mAccounts.erase(it);
+ mAccounts.erase(it++);
break;
default:
break;
}
-
- ++it;
}
}