Core/ObjectAccessor: don't use singleton when calling static methods
This commit is contained in:
1 parent
2523b47619
commit
0de1603944
18 files changed
+44
-44
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user