*Use getworldobject for getunit. Also allow get vehicles using this function.
--HG-- branch : trunk
This commit is contained in:
1 parent
2475390852
commit
94692ea5f7
2 files changed
+10
-5
No files matched your search
@@ -60,6 +60,7 @@ ObjectAccessor::GetCreatureOrPetOrVehicle(WorldObject const &u, uint64 guid)
|
||||
return u.GetMap()->GetCreature(guid);
|
||||
}
|
||||
|
||||
/*
|
||||
Unit*
|
||||
ObjectAccessor::GetUnit(WorldObject const &u, uint64 guid)
|
||||
{
|
||||
@@ -71,6 +72,7 @@ ObjectAccessor::GetUnit(WorldObject const &u, uint64 guid)
|
||||
|
||||
return GetCreatureOrPetOrVehicle(u, guid);
|
||||
}
|
||||
*/
|
||||
|
||||
Corpse*
|
||||
ObjectAccessor::GetCorpse(WorldObject const &u, uint64 guid)
|
||||
|
||||
Reference in new issue
Block a user