diff --git a/src/screen.cc b/src/screen.cc index df17293..1a8dd78 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -62,8 +62,7 @@ void ScreenStack::update(float dt) { } void ScreenStack::draw() { - auto idx = stack.size(); - while (idx > 0 && stack.at(--idx)->draw()) { + for (auto idx = 0; idx < size.size() && stack.at(idx)->draw(); ++idx) { } }