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

@@ -2867,8 +2867,8 @@ void WorldObject::UpdateAreaPhase()
{
bool up = false;
uint32 phaseGroup = uint32((*itr)->GetMiscValueB());
std::set<uint32> const& phases = sDB2Manager.GetPhasesForGroup(phaseGroup);
for (uint32 phase : phases)
std::set<uint32> const& phaseIDs = sDB2Manager.GetPhasesForGroup(phaseGroup);
for (uint32 phase : phaseIDs)
up = SetInPhase(phase, false, true);
if (!updateNeeded && up)
updateNeeded = true;