Some cleanup of add/remove to/from map.

This commit is contained in:
megamage
2011-11-11 17:50:26 -05:00
parent 3569f01adc
commit 07cf71fdd4
6 changed files with 44 additions and 43 deletions
+1 -1
View File
@@ -2277,7 +2277,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
// remove from old map now
if (oldmap)
oldmap->RemoveFromMap(this, false);
oldmap->RemovePlayerFromMap(this, false);
// new final coordinates
float final_x = x;