mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 12:12:34 -04:00
Core: Fix warnings
This commit is contained in:
@@ -782,7 +782,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
if (e.action.removeAura.charges)
|
||||
{
|
||||
if (Aura* aur = (*itr)->ToUnit()->GetAura(e.action.removeAura.spell))
|
||||
aur->ModCharges(-e.action.removeAura.charges, AURA_REMOVE_BY_EXPIRE);
|
||||
aur->ModCharges(-static_cast<int32>(e.action.removeAura.charges), AURA_REMOVE_BY_EXPIRE);
|
||||
}
|
||||
else
|
||||
(*itr)->ToUnit()->RemoveAurasDueToSpell(e.action.removeAura.spell);
|
||||
|
||||
Reference in New Issue
Block a user