remove unused player's class member,cleanup
--HG-- branch : trunk
This commit is contained in:
1 parent
59e0d42260
commit
aca2d26bc5
3 files changed
+5
-5
No files matched your search
+4
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user