Core/Misc: Fix issues reported by dynamic analysis

Closes #23021
This commit is contained in:
jackpoz authored and Ovahlord committed 2020-07-22 17:59:42 +02:00
1 parent b6a9647189
commit bad4b80374
1 file changed
+4 -2
+4 -2
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();