Core/Map:

- Fixed crash when a player was disconnected during a transfer to another map.
- Only call OnPlayerLeaveMap if player is removed from map. (Ty QAston)
This commit is contained in:
kaelima
2012-02-10 12:43:13 +01:00
parent 5251daf01a
commit 03b2717931
4 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -433,8 +433,7 @@ void Vehicle::RemovePassenger(Unit* unit)
void Vehicle::RelocatePassengers(float x, float y, float z, float ang)
{
Map* map = _me->GetMap();
ASSERT(map != NULL);
ASSERT(_me->IsInWorld());
// not sure that absolute position calculation is correct, it must depend on vehicle orientation and pitch angle
for (SeatMap::const_iterator itr = Seats.begin(); itr != Seats.end(); ++itr)