fix(Core/CS): Fixed learn command using null session when send over SOAP (#3595)
This commit is contained in:
parent
f3b506a1ca
commit
95ee873e8f
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ bool PlayerCommand::Learn(ChatHandler* handler, Player* targetPlayer, uint32 spe
|
|||
|
||||
if (!allRanks && targetPlayer->HasSpell(spell))
|
||||
{
|
||||
if (targetPlayer == handler->GetSession()->GetPlayer())
|
||||
if (handler->GetSession() && targetPlayer == handler->GetSession()->GetPlayer())
|
||||
handler->SendSysMessage(LANG_YOU_KNOWN_SPELL);
|
||||
else
|
||||
handler->PSendSysMessage(LANG_TARGET_KNOWN_SPELL, handler->GetNameLink(targetPlayer).c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue