Core/Characters: Fixed crash at character creation.

closes #5256
This commit is contained in:
Subv
2012-02-16 16:27:38 -05:00
parent 7ce7853606
commit 161e765400

View File

@@ -615,6 +615,7 @@ void WorldSession::HandleCharCreateCallback(PreparedQueryResult result, Characte
}
Player newChar(this);
newChar.GetMotionMaster()->Initialize();
if (!newChar.Create(sObjectMgr->GenerateLowGuid(HIGHGUID_PLAYER), createInfo))
{
// Player not create (race/class/etc problem?)