mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 16:31:29 +00:00
Fix crash
This commit is contained in:
parent
36300d6df1
commit
cdf0d5deb0
@ -286,6 +286,8 @@ Mob::Mob(const char* in_name,
|
|||||||
armor_tint.Slot[i].Color = in_armor_tint.Slot[i].Color;
|
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();
|
m_Delta = glm::vec4();
|
||||||
animation = 0;
|
animation = 0;
|
||||||
|
|
||||||
|
|||||||
@ -1414,7 +1414,8 @@ protected:
|
|||||||
|
|
||||||
glm::vec3 m_TargetRing;
|
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;
|
int flymode;
|
||||||
bool m_targetable;
|
bool m_targetable;
|
||||||
int QGVarDuration(const char *fmt);
|
int QGVarDuration(const char *fmt);
|
||||||
|
|||||||
@ -5565,6 +5565,7 @@ void Client::InitializeBuffSlots()
|
|||||||
for(int x = 0; x < max_slots; ++x)
|
for(int x = 0; x < max_slots; ++x)
|
||||||
{
|
{
|
||||||
buffs[x].spellid = SPELL_UNKNOWN;
|
buffs[x].spellid = SPELL_UNKNOWN;
|
||||||
|
buffs[x].UpdateClient = false;
|
||||||
}
|
}
|
||||||
current_buff_count = 0;
|
current_buff_count = 0;
|
||||||
}
|
}
|
||||||
@ -5581,6 +5582,7 @@ void NPC::InitializeBuffSlots()
|
|||||||
for(int x = 0; x < max_slots; ++x)
|
for(int x = 0; x < max_slots; ++x)
|
||||||
{
|
{
|
||||||
buffs[x].spellid = SPELL_UNKNOWN;
|
buffs[x].spellid = SPELL_UNKNOWN;
|
||||||
|
buffs[x].UpdateClient = false;
|
||||||
}
|
}
|
||||||
current_buff_count = 0;
|
current_buff_count = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user