Core: Fix warnings

(cherry picked from commit 48d47998d9)

Conflicts:
	src/server/game/Entities/Object/Object.cpp
This commit is contained in:
Vincent-Michael
2014-11-03 17:25:56 +01:00
committed by MitchesD
parent 2ccd3137f4
commit a856bb7843

View File

@@ -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);