Core/Misc: Fix issues reported by dynamic analysis

Closes #23021
This commit is contained in:
jackpoz
2019-02-05 20:29:39 +01:00
committed by Ovahlord
parent b6a9647189
commit bad4b80374

View File

@@ -280,8 +280,10 @@ class TC_GAME_API ThreatReference
ThreatReference(ThreatManager* mgr, Unit* victim) :
_owner(reinterpret_cast<Creature*>(mgr->_owner)), _mgr(*mgr), _victim(victim),
_online(ShouldBeSuppressed() ? ONLINE_STATE_SUPPRESSED : ONLINE_STATE_ONLINE),
_baseAmount(0.0f), _tempModifier(0), _taunted(TAUNT_STATE_NONE) { }
_baseAmount(0.0f), _tempModifier(0), _taunted(TAUNT_STATE_NONE)
{
_online = ShouldBeSuppressed() ? ONLINE_STATE_SUPPRESSED : ONLINE_STATE_ONLINE;
}
void UnregisterAndFree();