remove unused player's class member,cleanup

--HG--
branch : trunk
This commit is contained in:
silverice committed 2010-03-18 20:21:42 +02:00
1 parent 59e0d42260
commit aca2d26bc5
3 files changed
+5 -5

No files matched your search

+4 -3
View File
@@ -15287,9 +15287,10 @@ Unit *Unit::GetVehicleBase() const
Creature *Unit::GetVehicleCreatureBase() const
{
Unit *veh = GetVehicleBase();
if (veh && veh->GetTypeId() == TYPEID_UNIT)
return dynamic_cast<Creature*>(veh);
if( Unit *veh = GetVehicleBase())
if( Creature *c = veh->ToCreature())
return c;
return NULL;
}