aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-10 23:28:50 -0500
committermegamage <none@none>2009-08-10 23:28:50 -0500
commit4ecbefabfa43893e2411fd0cbb40767e7a74f758 (patch)
tree047d11740826a859cbc71d760ed81a731a42c517 /src
parentc1c8333642c29e6d3f285a4e62b73590f9f863ea (diff)
*Fix a crash when player gets teleported during log out.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 8a3a4bffd93..a56dba641db 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -1844,11 +1844,11 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
}
GetSession()->SendPacket( &data );
SendSavedInstances();
-
- // remove from old map now
- if(oldmap) oldmap->Remove(this, false);
}
+ // remove from old map now
+ if(oldmap) oldmap->Remove(this, false);
+
// new final coordinates
float final_x = x;
float final_y = y;