From: Stephen Seo Date: Wed, 23 Aug 2023 06:16:41 +0000 (+0900) Subject: Fix StackScreen's draw X-Git-Url: https://git.seodisparate.com/stephenseo/annotated.html?a=commitdiff_plain;h=17aa7f6860f563df062b44105403c11f9f47feab;p=jumpartifact.com_demo_0 Fix StackScreen's draw --- diff --git a/src/screen.cc b/src/screen.cc index 1a8dd78..4730408 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -62,7 +62,8 @@ void ScreenStack::update(float dt) { } void ScreenStack::draw() { - for (auto idx = 0; idx < size.size() && stack.at(idx)->draw(); ++idx) { + for (decltype(stack.size()) idx = 0; + idx < stack.size() && stack.at(idx)->draw(); ++idx) { } }