Core/Misc: Fixing warnings detected by Visual Studio 2015 compiler

This commit is contained in:
Shauren
2015-07-21 00:33:36 +02:00
parent 5987391073
commit a22e4e121a
47 changed files with 311 additions and 322 deletions

View File

@@ -3313,10 +3313,10 @@ SpellEffectInfoVector SpellInfo::GetEffectsForDifficulty(uint32 difficulty) cons
DifficultyEntry const* difficultyEntry = sDifficultyStore.LookupEntry(difficulty);
while (difficultyEntry)
{
SpellEffectInfoMap::const_iterator itr = _effects.find(difficulty);
if (itr != _effects.end())
SpellEffectInfoMap::const_iterator effectItr = _effects.find(difficulty);
if (effectItr != _effects.end())
{
for (SpellEffectInfo const* effect : itr->second)
for (SpellEffectInfo const* effect : effectItr->second)
{
// overwrite any existing effect from DIFFICULTY_NONE
if (effect)