*Fix a bug that player may not be at correct location when log in after crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-17 16:36:40 -05:00
parent f09f5c61d4
commit 424391d7c4
+1 -2
View File
@@ -14482,7 +14482,7 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
// since the player may not be bound to the map yet, make sure subsequent
// getmap calls won't create new maps
//SetInstanceId(map->GetInstanceId());
SetInstanceId(map->GetInstanceId());
// if the player is in an instance and it has been reset in the meantime teleport him to the entrance
if(GetInstanceId() && !sInstanceSaveManager.GetInstanceSave(GetInstanceId()))
@@ -20665,7 +20665,6 @@ bool Player::canSeeSpellClickOn(Creature const *c) const
for(SpellClickInfoMap::const_iterator itr = lower; itr != upper; ++itr)
{
sLog.outError("%u %u %u %u", (uint32)itr->second.castFlags, itr->second.questId, itr->second.spellId);
if(itr->second.questId == 0 || GetQuestStatus(itr->second.questId) == QUEST_STATUS_INCOMPLETE)
return true;
}