diff options
author | megamage <none@none> | 2009-06-03 19:29:55 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-03 19:29:55 -0500 |
commit | e3390806a948c3ffdcead96652a35e46686431ce (patch) | |
tree | 6ffd83adbf0a9be47e8b36ab062cf4e6e5eddf20 /src/game/Unit.cpp | |
parent | fc4f7e6cf12996f4afce71e97918bff2ab699919 (diff) |
[7948] Use SetFaction instead explcit field set, other cleanups. Author: NoFantasy
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 9fd46ad2db6..20c0aea62cc 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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) |