diff options
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 583087a5106..775ac762cd2 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6539,7 +6539,7 @@ void Spell::SummonTotem(uint32 entry, SummonPropertiesEntry const *properties) pTotem->Relocate(x, y, z, m_caster->GetOrientation()); - if(slot < MAX_TOTEM) + if(slot >= 0 && slot < MAX_TOTEM) m_caster->m_TotemSlot[slot] = pTotem->GetGUID(); pTotem->SetOwner(m_caster->GetGUID()); |