Core Hook - Remove temporary fix and document possible null in hook (#805)

* Remove workaround

Partially revert temporary crash fix a36e94a49a

* Update ScriptMgr.h
This commit is contained in:
Rochet2
2018-06-20 01:38:32 +03:00
committed by Barbz
parent b2870298c1
commit a3d3042049
2 changed files with 1 additions and 2 deletions

View File

@@ -76,8 +76,6 @@ Object::Object() : m_PackGUID(sizeof(uint64)+1)
m_inWorld = false;
m_objectUpdated = false;
CustomData.Set("base",new DataMap::Base); // avoid crash when access not initialized CustomData
m_PackGUID.appendPackGUID(0);
}

View File

@@ -445,6 +445,7 @@ public:
virtual void OnDamage(Unit* /*attacker*/, Unit* /*victim*/, uint32& /*damage*/) { }
// Called when DoT's Tick Damage is being Dealt
// Attacker can be NULL if he is despawned while the aura still exists on target
virtual void ModifyPeriodicDamageAurasTick(Unit* /*target*/, Unit* /*attacker*/, uint32& /*damage*/) { }
// Called when Melee Damage is being Dealt