aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Player/Player.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index fe784b1ec9e..13a39e98122 100755
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -1728,7 +1728,9 @@ void Player::Update(uint32 p_time)
{
if (_pendingBindTimer <= p_time)
{
- BindToInstance();
+ // Player left the instance
+ if (_pendingBind->GetInstanceId() == GetInstanceId())
+ BindToInstance();
SetPendingBind(NULL, 0);
}
else
@@ -17907,10 +17909,6 @@ InstancePlayerBind* Player::BindToInstance(InstanceSave *save, bool permanent, b
void Player::BindToInstance()
{
- // Player left the instance
- if (_pendingBind->GetInstanceId() != GetInstanceId())
- return;
-
WorldPacket data(SMSG_INSTANCE_SAVE_CREATED, 4);
data << uint32(0);
GetSession()->SendPacket(&data);