aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/HealthCriteria.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/HealthCriteria.cpp')
-rw-r--r--Minecraft.World/HealthCriteria.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Minecraft.World/HealthCriteria.cpp b/Minecraft.World/HealthCriteria.cpp
index 52db9f11..33520621 100644
--- a/Minecraft.World/HealthCriteria.cpp
+++ b/Minecraft.World/HealthCriteria.cpp
@@ -10,9 +10,8 @@ int HealthCriteria::getScoreModifier(vector<shared_ptr<Player> > *players)
{
float health = 0;
- for (AUTO_VAR(it,players->begin()); it != players->end(); ++it)
+ for (auto& player : *players)
{
- shared_ptr<Player> player = *it;
health += player->getHealth() + player->getAbsorptionAmount();
}