From f5bae4d5ae97e15a8af6f0003de15c25acb65026 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 9 May 2009 10:48:55 -0500 Subject: *Init player motionmaster after field value are initialized. --HG-- branch : trunk --- src/game/CharacterHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp index d82f0a0b518..93256cea150 100644 --- a/src/game/CharacterHandler.cpp +++ b/src/game/CharacterHandler.cpp @@ -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); -- cgit v1.2.3