From e64f1311ce53646629cf054953fe548b81da740d Mon Sep 17 00:00:00 2001 From: DomNomNomVR <108088541+DomNomNomVR@users.noreply.github.com> Date: Thu, 14 Nov 2024 21:34:56 +1300 Subject: [PATCH] Make double size check more valid --- src/VkBootstrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VkBootstrap.cpp b/src/VkBootstrap.cpp index 12d5369..64fb574 100644 --- a/src/VkBootstrap.cpp +++ b/src/VkBootstrap.cpp @@ -61,7 +61,7 @@ bool GenericFeatureChain::match_all(GenericFeatureChain const& extension_request return false; } - for (size_t i = 0; i < nodes.size() && i < nodes.size(); ++i) { + for (size_t i = 0; i < extension_requested.nodes.size() && i < nodes.size(); ++i) { if (!GenericFeaturesPNextNode::match(extension_requested.nodes[i], nodes[i])) return false; } return true;