aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 433b5e1610d..7816412a0ad 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -972,7 +972,7 @@ void Creature::SetLootRecipient(Unit *unit)
{
m_lootRecipient = 0;
RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
- RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_OTHER_TAGGER);
+ RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_TAPPED);
return;
}
@@ -981,7 +981,7 @@ void Creature::SetLootRecipient(Unit *unit)
return;
m_lootRecipient = player->GetGUID();
- SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_OTHER_TAGGER);
+ SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_TAPPED);
}
void Creature::SaveToDB()
@@ -1583,9 +1583,9 @@ void Creature::Respawn(bool force)
if (IsAIEnabled)
AI()->JustRespawned();
- uint16 poolid = poolhandler.IsPartOfAPool(GetGUIDLow(), GetTypeId());
+ uint16 poolid = GetDBTableGUIDLow() ? poolhandler.IsPartOfAPool<Creature>(GetDBTableGUIDLow()) : 0;
if (poolid)
- poolhandler.UpdatePool(poolid, GetGUIDLow(), TYPEID_UNIT);
+ poolhandler.UpdatePool<Creature>(poolid, GetDBTableGUIDLow());
}
SetToNotify();