Fix crash

This commit is contained in:
Michael Cook (mackal) 2017-01-26 18:04:59 -05:00
parent 36300d6df1
commit cdf0d5deb0
3 changed files with 6 additions and 1 deletions

View File

@ -286,6 +286,8 @@ Mob::Mob(const char* in_name,
armor_tint.Slot[i].Color = in_armor_tint.Slot[i].Color;
}
std::fill(std::begin(m_spellHitsLeft), std::end(m_spellHitsLeft), 0);
m_Delta = glm::vec4();
animation = 0;

View File

@ -1414,7 +1414,8 @@ protected:
glm::vec3 m_TargetRing;
uint32 m_spellHitsLeft[38]; // Used to track which spells will have their numhits incremented when spell finishes casting, 38 Buffslots
// we might want to do this differently, we gotta do max NPC buffs ... which is 97
uint32 m_spellHitsLeft[EQEmu::constants::TotalBuffs]; // Used to track which spells will have their numhits incremented when spell finishes casting
int flymode;
bool m_targetable;
int QGVarDuration(const char *fmt);

View File

@ -5565,6 +5565,7 @@ void Client::InitializeBuffSlots()
for(int x = 0; x < max_slots; ++x)
{
buffs[x].spellid = SPELL_UNKNOWN;
buffs[x].UpdateClient = false;
}
current_buff_count = 0;
}
@ -5581,6 +5582,7 @@ void NPC::InitializeBuffSlots()
for(int x = 0; x < max_slots; ++x)
{
buffs[x].spellid = SPELL_UNKNOWN;
buffs[x].UpdateClient = false;
}
current_buff_count = 0;
}