mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
*Init player motionmaster after field value are initialized.
--HG-- branch : trunk
This commit is contained in:
@@ -571,7 +571,6 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder * holder)
|
||||
uint64 playerGuid = holder->GetGuid();
|
||||
|
||||
Player* pCurrChar = new Player(this);
|
||||
pCurrChar->GetMotionMaster()->Initialize();
|
||||
// for send server info and strings (config)
|
||||
ChatHandler chH = ChatHandler(pCurrChar);
|
||||
|
||||
@@ -585,6 +584,8 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder * holder)
|
||||
return;
|
||||
}
|
||||
|
||||
pCurrChar->GetMotionMaster()->Initialize();
|
||||
|
||||
SetPlayer(pCurrChar);
|
||||
|
||||
pCurrChar->SendDungeonDifficulty(false);
|
||||
|
||||
Reference in New Issue
Block a user