Use explicit loop

This commit is contained in:
King_DuckZ 2017-01-30 13:05:26 +00:00
parent 3907ef6d6d
commit 2062d50775

View file

@ -19,7 +19,6 @@
#include "worlditems.hpp"
#include "moveable.hpp"
#include <algorithm>
namespace curry {
WorldItems::WorldItems() = default;
@ -33,7 +32,9 @@ namespace curry {
}
void WorldItems::move_items (float parDeltaT) {
std::for_each(m_moveables.begin(), m_moveables.end(), [=](Moveable* m) {m->do_movement(parDeltaT);});
for (auto& m : m_moveables) {
m->do_movement(parDeltaT);
}
}
bool WorldItems::no_items_registered() const {