* Forgotten stack rules for rev f69fb2d3e0, thanks svetilo12

* Fix a crash in rev a972aa682b

--HG--
branch : trunk
This commit is contained in:
Shocker
2010-08-24 22:47:41 +03:00
parent 9b75f358ba
commit c0dda8b492
3 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -188,7 +188,7 @@ void Vehicle::RemoveAllPassengers()
itr->second.passenger = NULL;
}
// creature passengers mounted on player mounts should be despawned at dismount
if (GetBase()->GetTypeId() == TYPEID_PLAYER && passenger->GetEntry())
if (GetBase()->GetTypeId() == TYPEID_PLAYER && passenger->ToCreature())
passenger->ToCreature()->ForcedDespawn();
}
}