[10484] Use for auraholde/aura GetStackAmount uint32 result.

uint32 result used in most expressions for stack calculation/compare
Alos uint8implicitly casted to int by C++ in expressions that generate unexpected
signed/unsigned warnings in comparisons (uint8 +1) > uint32 and similar.
This commit is contained in:
VladimirMangos 2010-09-14 21:26:24 +04:00
parent a3e62d43b0
commit f0956e258c
5 changed files with 14 additions and 14 deletions

View file

@ -8136,15 +8136,15 @@ bool SpellAuraHolder::ModStackAmount(int32 num)
return false;
}
void SpellAuraHolder::SetStackAmount(uint8 stackAmount)
void SpellAuraHolder::SetStackAmount(uint32 stackAmount)
{
Unit *target = GetTarget();
Unit *caster = GetCaster();
if (!target || !caster)
return;
bool refresh = stackAmount >= m_stackAmount;
if (stackAmount != m_stackAmount)
bool refresh = stackAmount >= uint32(m_stackAmount);
if (stackAmount != uint32(m_stackAmount))
{
m_stackAmount = stackAmount;