mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10627] Use ObjectGuid for player's selection and unit's target
This commit is contained in:
parent
e74d56f9d2
commit
c955941b55
21 changed files with 66 additions and 73 deletions
|
|
@ -101,8 +101,8 @@ bool ChatHandler::HandleNpcWhisperCommand(char* args)
|
|||
if (!ExtractPlayerTarget(&args, &target))
|
||||
return false;
|
||||
|
||||
uint64 guid = m_session->GetPlayer()->GetSelection();
|
||||
if (!guid)
|
||||
ObjectGuid guid = m_session->GetPlayer()->GetSelectionGuid();
|
||||
if (guid.IsEmpty())
|
||||
return false;
|
||||
|
||||
Creature* pCreature = m_session->GetPlayer()->GetMap()->GetCreature(guid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue