aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-03 19:29:55 -0500
committermegamage <none@none>2009-06-03 19:29:55 -0500
commite3390806a948c3ffdcead96652a35e46686431ce (patch)
tree6ffd83adbf0a9be47e8b36ab062cf4e6e5eddf20 /src/game/Unit.cpp
parentfc4f7e6cf12996f4afce71e97918bff2ab699919 (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.cpp2
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)