Skip to content

Commit

Permalink
hello 2003 this is range loops you can have iterators back
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 13, 2018
1 parent bf5411f commit d116c02
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ActorFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,8 @@ ActorFrame::UpdateInternal(float fDeltaTime)
Actor::UpdateInternal(fDeltaTime);

// update all sub-Actors
for (vector<Actor*>::iterator it = m_SubActors.begin();
it != m_SubActors.end();
it++) {
Actor* pActor = *it;
pActor->Update(fDeltaTime);
}
for (auto* a : m_SubActors)
a->Update(fDeltaTime);

if (unlikely(!m_UpdateFunction.IsNil())) {
Lua* L = LUA->Get();
Expand Down

0 comments on commit d116c02

Please sign in to comment.