diff --git a/client/xr/details/enumerate.h b/client/xr/details/enumerate.h index 4fddfe8d..56dc803e 100644 --- a/client/xr/details/enumerate.h +++ b/client/xr/details/enumerate.h @@ -90,7 +90,11 @@ auto enumerate(F f, Args &&... args) -> auto if (XR_SUCCEEDED(result)) { - if constexpr (structure_type == XR_TYPE_UNKNOWN) + if constexpr (std::is_same_v) + { + array.resize(count - 1); // count includes the null terminator + } + else if constexpr (structure_type == XR_TYPE_UNKNOWN) { array.resize(count); }