Core/Players: Fix crash in LoadFromDB

Closes #4724
Closes #4673
This commit is contained in:
Subv2112
2012-01-08 18:37:16 +00:00
committed by Nay
parent 46332bdf15
commit 5584354444
2 changed files with 2 additions and 3 deletions
@@ -16657,6 +16657,7 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder)
_LoadInstanceTimeRestrictions(holder->GetPreparedResult(PLAYER_LOGIN_QUERY_LOADINSTANCELOCKTIMES));
_LoadBGData(holder->GetPreparedResult(PLAYER_LOGIN_QUERY_LOADBGDATA));
GetSession()->SetPlayer(this);
MapEntry const* mapEntry = sMapStore.LookupEntry(mapId);
if (!mapEntry || !IsPositionValid())
{