diff options
author | Huynh Tran <nthuynh75@gmail.com> | 2005-07-01 05:32:30 +0000 |
---|---|---|
committer | Huynh Tran <nthuynh75@gmail.com> | 2005-07-01 05:32:30 +0000 |
commit | 4cf67a47d5859b315761fb4bedba11a5cba99308 (patch) | |
tree | 00b73e645ea3bb86effead5d02c6d58f1ceb45ae /src | |
parent | 38cfcdd2b7681fc32b1464a4905c721246cf6d75 (diff) | |
download | manaserv-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.cpp | 6 |
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; } } |