*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();
|
uint64 playerGuid = holder->GetGuid();
|
||||||
|
|
||||||
Player* pCurrChar = new Player(this);
|
Player* pCurrChar = new Player(this);
|
||||||
pCurrChar->GetMotionMaster()->Initialize();
|
|
||||||
// for send server info and strings (config)
|
// for send server info and strings (config)
|
||||||
ChatHandler chH = ChatHandler(pCurrChar);
|
ChatHandler chH = ChatHandler(pCurrChar);
|
||||||
|
|
||||||
@@ -585,6 +584,8 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder * holder)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pCurrChar->GetMotionMaster()->Initialize();
|
||||||
|
|
||||||
SetPlayer(pCurrChar);
|
SetPlayer(pCurrChar);
|
||||||
|
|
||||||
pCurrChar->SendDungeonDifficulty(false);
|
pCurrChar->SendDungeonDifficulty(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user