diff options
| author | megamage <none@none> | 2009-05-17 16:36:40 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-17 16:36:40 -0500 |
| commit | 424391d7c4175b7baec814e00559a393d7ff1ba1 (patch) | |
| tree | 3fc78b1f1587cdde6cdc9c0a9b0625cb7fc274ce /src | |
| parent | f09f5c61d45d8f89fc39e9b55110ebfe4e0240ff (diff) | |
*Fix a bug that player may not be at correct location when log in after crash.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index c7d10029617..a94a63950f5 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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; } |
