*Fix a crash when player gets teleported during log out.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-10 23:28:50 -05:00
parent c1c8333642
commit 4ecbefabfa

View File

@@ -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;