*check for IsVehicle() closes #132

--HG--
branch : trunk
This commit is contained in:
Rat
2009-11-10 10:39:55 +01:00
parent 40dceb43d6
commit eb006e72c9
+1
View File
@@ -909,6 +909,7 @@ bool OPvPWintergrasp::UpdateCreatureInfo(Creature *creature)
} }
else else
{ {
if (creature->IsVehicle() && creature->GetVehicleKit())
creature->GetVehicleKit()->RemoveAllPassengers(); creature->GetVehicleKit()->RemoveAllPassengers();
creature->SetVisibility(VISIBILITY_OFF); creature->SetVisibility(VISIBILITY_OFF);
creature->setFaction(35); creature->setFaction(35);