We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2f167 commit a0cf98fCopy full SHA for a0cf98f
1 file changed
src/game/Handlers/CharacterHandler.cpp
@@ -454,7 +454,10 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder)
454
pCurrChar->SetSession(this);
455
456
// Need to attach packet bcaster to the new socket
457
- pCurrChar->m_broadcaster->ChangeSocket(GetSocket());
+ if (pCurrChar->m_broadcaster)
458
+ pCurrChar->m_broadcaster->ChangeSocket(GetSocket());
459
+ else
460
+ pCurrChar->CreatePacketBroadcaster();
461
462
// If the character had a logout request, then he is articifially stunned (in CMSG_LOGOUT_REQUEST handler). Fix it here.
463
if (pCurrChar->CanFreeMove())
0 commit comments