Core: Get rid of dirty operator workaround for ACE_Singleton class implementation
--HG-- branch : trunk
This commit is contained in:
@@ -335,7 +335,7 @@ void CreatureTextMgr::SendChatPacket(WorldPacket *data, WorldObject* source, Cha
|
||||
{
|
||||
if (range == TEXT_RANGE_NORMAL)//ignores team and gmOnly
|
||||
{
|
||||
Player *player = sObjectMgr.GetPlayer(whisperGuid);
|
||||
Player *player = sObjectMgr->GetPlayer(whisperGuid);
|
||||
if (!player || !player->GetSession())
|
||||
return;
|
||||
player->GetSession()->SendPacket(data);
|
||||
|
||||
@@ -79,5 +79,5 @@ class CreatureTextMgr
|
||||
CreatureTextRepeatMap mTextRepeatMap;
|
||||
};
|
||||
|
||||
#define sCreatureTextMgr (*ACE_Singleton<CreatureTextMgr, ACE_Null_Mutex>::instance())
|
||||
#define sCreatureTextMgr ACE_Singleton<CreatureTextMgr, ACE_Null_Mutex>::instance()
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user