mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 03:11:28 +00:00
Initialised some data in Mob/Merc constructors to stop valgrind complaining.
This commit is contained in:
parent
f32a277643
commit
6ae8fbc0e4
@ -37,9 +37,11 @@ Merc::Merc(const NPCType* d, float x, float y, float z, float heading)
|
|||||||
_baseFR = d->FR;
|
_baseFR = d->FR;
|
||||||
_basePR = d->PR;
|
_basePR = d->PR;
|
||||||
_baseCorrup = d->Corrup;
|
_baseCorrup = d->Corrup;
|
||||||
|
_OwnerClientVersion = EQClientTitanium;
|
||||||
RestRegenHP = 0;
|
RestRegenHP = 0;
|
||||||
RestRegenMana = 0;
|
RestRegenMana = 0;
|
||||||
RestRegenEndurance = 0;
|
RestRegenEndurance = 0;
|
||||||
|
cur_end = 0;
|
||||||
|
|
||||||
_medding = false;
|
_medding = false;
|
||||||
_suspended = false;
|
_suspended = false;
|
||||||
@ -2749,7 +2751,7 @@ int16 Merc::GetFocusEffect(focusType type, uint16 spell_id) {
|
|||||||
int16 focus_max_real = 0;
|
int16 focus_max_real = 0;
|
||||||
|
|
||||||
//item focus
|
//item focus
|
||||||
for(int x=0; x<=MAX_WORN_INVENTORY; x++)
|
for(int x =0; x < MAX_WORN_INVENTORY; ++x)
|
||||||
{
|
{
|
||||||
TempItem = NULL;
|
TempItem = NULL;
|
||||||
if (equipment[x] == 0)
|
if (equipment[x] == 0)
|
||||||
|
|||||||
@ -274,7 +274,7 @@ Mob::Mob(const char* in_name,
|
|||||||
|
|
||||||
memset(&itembonuses, 0, sizeof(StatBonuses));
|
memset(&itembonuses, 0, sizeof(StatBonuses));
|
||||||
memset(&spellbonuses, 0, sizeof(StatBonuses));
|
memset(&spellbonuses, 0, sizeof(StatBonuses));
|
||||||
//memset(&aabonuses, 0, sizeof(StatBonuses)); //don't need this until we start using Client::CalcAABonuses()
|
memset(&aabonuses, 0, sizeof(StatBonuses));
|
||||||
spellbonuses.AggroRange = -1;
|
spellbonuses.AggroRange = -1;
|
||||||
spellbonuses.AssistRange = -1;
|
spellbonuses.AssistRange = -1;
|
||||||
pLastChange = 0;
|
pLastChange = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user