Change ObjectAccessor to an ACE_Null_Mutex singleton, since its members have been protected by individual locks.
Also make some of its member functions static.
This commit is contained in:
@@ -312,6 +312,7 @@ template<>
|
||||
void Map::DeleteFromWorld(Player* pl)
|
||||
{
|
||||
sObjectAccessor->RemoveObject(pl);
|
||||
sObjectAccessor->RemoveUpdateObject(pl); //TODO: I do not know why we need this, it should be removed in ~Object anyway
|
||||
delete pl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user