Make double size check more valid

This commit is contained in:
DomNomNomVR 2024-11-14 21:34:56 +13:00 committed by Charles Giessen
parent 03ebcdbc76
commit e64f1311ce

View File

@ -61,7 +61,7 @@ bool GenericFeatureChain::match_all(GenericFeatureChain const& extension_request
return false; 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; if (!GenericFeaturesPNextNode::match(extension_requested.nodes[i], nodes[i])) return false;
} }
return true; return true;