diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index 2d346d09..c611c609 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -81,8 +81,8 @@ namespace detail { GLM_FUNC_QUALIFIER static vecType call(vecType const & x, vecType const & y, vecType const & a) { - vecType Result; - for(length_t i = 0; i < detail::component_count(x); ++i) + vecType Result(vecType::_null); + for(detail::component_count_t i = 0; i < detail::component_count(x); ++i) Result[i] = a[i] ? y[i] : x[i]; return Result; }