Core: Fix warnings
(cherry picked from commit 48d47998d9b4e5a234d4b2489f2954eded8dcbf0) Conflicts: src/server/game/Entities/Object/Object.cpp
This commit is contained in:
1 parent
2ccd3137f4
commit
a856bb7843
1 file changed
+1
-1
@@ -780,7 +780,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