Skip to content
Permalink
Browse files

Server/Misc: Fixed Static Analysis Issues.

Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information...
AriDEV committed May 10, 2019
1 parent 0e9592b commit fd8b54d437bf3a56cef861743c220c36d641f118
@@ -121,7 +121,7 @@ class BattlePetMgr

bool m_loadoutSave;
uint8 m_loadoutFlags;
uint64 m_loadout[BATTLE_PET_MAX_LOADOUT_SLOTS];
uint64 m_loadout[BATTLE_PET_MAX_LOADOUT_SLOTS] = { };
};

#endif
@@ -404,18 +404,14 @@ typedef std::list<VendorItemCount> VendorItemCounts;

struct TrainerSpell
{
TrainerSpell() : spell(0), spellCost(0), reqSkill(0), reqSkillValue(0), reqLevel(0)
{
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
learnedSpell[i] = 0;
}
TrainerSpell() : spell(0), spellCost(0), reqSkill(0), reqSkillValue(0), reqLevel(0) { }

uint32 spell;
uint32 spellCost;
uint32 reqSkill;
uint32 reqSkillValue;
uint32 reqLevel;
uint32 learnedSpell[MAX_SPELL_EFFECTS];
uint32 learnedSpell[MAX_SPELL_EFFECTS] = { };

// helpers
bool IsCastable() const { return learnedSpell[0] != spell; }
@@ -404,12 +404,8 @@ typedef std::list<PlayerCreateInfoItem> PlayerCreateInfoItems;

struct PlayerLevelInfo
{
PlayerLevelInfo()
{
for (uint8 i = 0; i < MAX_STATS; ++i) stats [i] = 0;
}

uint8 stats [MAX_STATS];
PlayerLevelInfo() { }
uint8 stats[MAX_STATS] = { };
};

typedef std::list<uint32> PlayerCreateInfoSpells;
@@ -1104,7 +1100,7 @@ struct BGData
uint32 bgTeam; ///< What side the player will be added to

uint32 mountSpell;
uint32 taxiPath [2];
uint32 taxiPath[2] = { };

WorldLocation joinPos; ///< From where player entered BG

0 comments on commit fd8b54d

Please sign in to comment.
You can’t perform that action at this time.