mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 16:37:06 +00:00
[Sync] Some long overdue project sync
This commit is contained in:
parent
a479a2ccc5
commit
65ec4ea06e
76 changed files with 1693 additions and 1489 deletions
|
|
@ -63,10 +63,9 @@ void GMTicketMgr::LoadGMTickets()
|
|||
|
||||
uint32 guidlow = fields[0].GetUInt32();
|
||||
if (!guidlow)
|
||||
continue;
|
||||
{ continue; }
|
||||
|
||||
ObjectGuid guid = ObjectGuid(HIGHGUID_PLAYER, guidlow);
|
||||
|
||||
GMTicket& ticket = m_GMTicketMap[guid];
|
||||
|
||||
if (ticket.GetPlayerGuid()) // already exist
|
||||
|
|
@ -90,7 +89,7 @@ void GMTicketMgr::DeleteAll()
|
|||
for (GMTicketMap::const_iterator itr = m_GMTicketMap.begin(); itr != m_GMTicketMap.end(); ++itr)
|
||||
{
|
||||
if (Player* owner = sObjectMgr.GetPlayer(itr->first))
|
||||
owner->GetSession()->SendGMTicketGetTicket(0x0A);
|
||||
{ owner->GetSession()->SendGMTicketGetTicket(0x0A); }
|
||||
}
|
||||
CharacterDatabase.Execute("DELETE FROM character_ticket");
|
||||
m_GMTicketListByCreatingOrder.clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue