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:
megamage
2011-11-07 09:44:09 -05:00
parent f42998277f
commit 495ef10b0d
2 changed files with 15 additions and 22 deletions
+1
View File
@@ -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;
}