Core/ObjectAccessor: don't use singleton when calling static methods

This commit is contained in:
joschiwald committed 2014-10-18 15:13:29 +02:00
1 parent 2523b47619
commit 0de1603944
18 files changed
+44 -44

No files matched your search

+1 -1
View File
@@ -298,7 +298,7 @@ public:
CharacterDatabase.Execute(stmt);
boost::shared_lock<boost::shared_mutex> lock(*HashMapHolder<Player>::GetLock());
HashMapHolder<Player>::MapType const& plist = sObjectAccessor->GetPlayers();
HashMapHolder<Player>::MapType const& plist = ObjectAccessor::GetPlayers();
for (HashMapHolder<Player>::MapType::const_iterator itr = plist.begin(); itr != plist.end(); ++itr)
itr->second->SetAtLoginFlag(atLogin);