Core/Entities: Changed a few lowguid uses to ObjectGuid::LowType

This commit is contained in:
Shauren
2014-10-25 17:11:35 +02:00
parent 5eb9fe1ea8
commit 10fb948c40
16 changed files with 49 additions and 25 deletions

View File

@@ -153,7 +153,13 @@ public:
return true;
}
sTicketMgr->CloseTicket(ticket->GetId(), player ? player->GetGUID() : ObjectGuid(HIGHGUID_PLAYER, uint64(0), uint64(-1)));
ObjectGuid closedByGuid;
if (player)
closedByGuid = player->GetGUID();
else
closedByGuid.SetRawValue(0, uint64(-1));
sTicketMgr->CloseTicket(ticket->GetId(), closedByGuid);
sTicketMgr->UpdateLastChange();
std::string msg = ticket->FormatMessageString(*handler, player ? player->GetName().c_str() : "Console", NULL, NULL, NULL, NULL);