Core/Unit: fixed a warning reported by travis

This commit is contained in:
Ovahlord committed 2019-11-28 09:28:43 +01:00
1 parent 679af9e3e8
commit f8a17d673e
1 file changed
+1 -1
+1 -1
View File
@@ -6635,7 +6635,7 @@ uint32 Unit::SpellDamageBonusDone(Unit* victim, SpellInfo const* spellProto, uin
// For totems and pets use owner's bonus data
if (GetTypeId() == TYPEID_UNIT && IsTotem())
if (Unit* owner = GetOwner())
return owner->SpellDamageBonusDone(victim, spellProto, pdamage, damagetype, effIndex);
return owner->SpellDamageBonusDone(victim, spellProto, pdamage, damagetype, effIndex, stack);
float ApCoeffMod = 1.0f;
int32 DoneTotal = 0;