Fix patch list count off by one error

This commit is contained in:
Sandy Carter
2017-05-22 02:56:26 -07:00
committed by Baldur Karlsson
parent 1dcd39afd5
commit 007846ac67
+1 -1
View File
@@ -1457,7 +1457,7 @@ constexpr inline uint32_t PatchList_Count(Topology topology)
{
return uint32_t(topology) < uint32_t(Topology::PatchList_1CPs)
? 0
: uint32_t(topology) - uint32_t(Topology::PatchList_1CPs);
: uint32_t(topology) - uint32_t(Topology::PatchList_1CPs) + 1;
}
DOCUMENT(R"(Check whether or not this is a strip-type topology.