diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index 5d18c44..5025b7b 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -1585,7 +1585,7 @@ void VulkanHppGenerator::appendFunctionBodyEnhancedLocalReturnVariableVectorSize // -> look for it and get it's actual size for (auto const& vpi : vectorParamIndices) { - if ((vpi.first != vectorParamIndex.first) || (vpi.second != vectorParamIndex.second)) + if ((vpi.first != vectorParamIndex.first) && (vpi.second == vectorParamIndex.second)) { size = startLowerCase(stripPrefix(params[vpi.first].name, "p")) + ".size()"; break;