]> git.seodisparate.com - jumpartifact.com_demo_0/commitdiff
Fix StackScreen's draw
authorStephen Seo <seo.disparate@gmail.com>
Wed, 23 Aug 2023 06:16:41 +0000 (15:16 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 23 Aug 2023 06:16:41 +0000 (15:16 +0900)
src/screen.cc

index 1a8dd7832ef8a720f07b8927dba1585b7b7288de..47304083d39bb97c23e1ca786be6f479ba00aaf7 100644 (file)
@@ -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) {
   }
 }