diff options
author | megamage <none@none> | 2009-08-17 16:07:46 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-17 16:07:46 -0500 |
commit | a984c3a1d950ef8be5c0ef4059f1a09235f29f8b (patch) | |
tree | 994892eadcf9d404848a9f3a443b0c001d53be7a | |
parent | c31a7447711f367fd69d8d5f3c212e0cb742fc00 (diff) |
[8373] Correctly set bgInstanceID to 0 when log in into alredy ended BG.
This should fix problem that players who logged off during BG are after every
next login into game teleported to BG entry position.
Signed-off-by: ApoC <apoc@nymfe.net>
--HG--
branch : trunk
-rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 45b9677347c..88507ffac86 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -14836,6 +14836,9 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder ) const WorldLocation& _loc = GetBattleGroundEntryPoint(); mapId = _loc.mapid; instanceId = 0; Relocate(_loc.coord_x, _loc.coord_y, _loc.coord_z, _loc.orientation); + + // We are not in BG anymore + m_bgData.bgInstanceID = 0; } } // currently we do not support transport in bg |