Use explicit loop
This commit is contained in:
parent
3907ef6d6d
commit
2062d50775
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue