diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Player/CollectionMgr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Entities/Player/CollectionMgr.cpp b/src/server/game/Entities/Player/CollectionMgr.cpp index 9929c6362ef..44e7b148b22 100644 --- a/src/server/game/Entities/Player/CollectionMgr.cpp +++ b/src/server/game/Entities/Player/CollectionMgr.cpp @@ -53,12 +53,12 @@ void CollectionMgr::LoadAccountToys(PreparedQueryResult result) void CollectionMgr::SaveAccountToys(SQLTransaction& trans) { PreparedStatement* stmt = nullptr; - for (ToyBoxContainer::const_iterator itr = _toys.begin(); itr != _toys.end(); ++itr) + for (auto const& toy : _toys) { stmt = LoginDatabase.GetPreparedStatement(LOGIN_REP_ACCOUNT_TOYS); stmt->setUInt32(0, _owner->GetBattlenetAccountId()); - stmt->setUInt32(1, itr->first); - stmt->setBool(2, itr->second); + stmt->setUInt32(1, toy.first); + stmt->setBool(2, toy.second); trans->Append(stmt); } } |
