mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[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:
parent
a3e62d43b0
commit
f0956e258c
5 changed files with 14 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue