aboutsummaryrefslogtreecommitdiff
path: root/src/game/Totem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Totem.cpp')
-rw-r--r--src/game/Totem.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp
index aa7094cd986..2ac26f823d6 100644
--- a/src/game/Totem.cpp
+++ b/src/game/Totem.cpp
@@ -147,10 +147,9 @@ void Totem::UnSummon()
void Totem::SetOwner(uint64 guid)
{
- SetUInt64Value(UNIT_FIELD_SUMMONEDBY, guid);
- SetUInt64Value(UNIT_FIELD_CREATEDBY, guid);
- Unit *owner = this->GetOwner();
- if (owner)
+ SetCreatorGUID(guid);
+ SetOwnerGUID(guid);
+ if (Unit *owner = GetOwner())
{
this->setFaction(owner->getFaction());
this->SetLevel(owner->getLevel());