[7948] Use SetFaction instead explcit field set, other cleanups. Author: NoFantasy

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-03 19:29:55 -05:00
1 parent fc4f7e6cf1
commit e3390806a9
5 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -12951,7 +12951,7 @@ Pet* Unit::CreateTamedPetFrom(Creature* creatureTarget,uint32 spell_id)
}
pet->SetCreatorGUID(GetGUID());
pet->SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, getFaction());
pet->setFaction(getFaction());
pet->SetUInt32Value(UNIT_CREATED_BY_SPELL, spell_id);
if(GetTypeId()==TYPEID_PLAYER)