diff --git a/src/util/util_small_vector.h b/src/util/util_small_vector.h index 27aa754b9..93b84a491 100644 --- a/src/util/util_small_vector.h +++ b/src/util/util_small_vector.h @@ -33,7 +33,7 @@ namespace dxvk { }; small_vector(small_vector&& other) { - if (other.m_size < N) { + if (other.m_size <= N) { for (size_t i = 0; i < other.m_size; i++) { new (&u.m_data[i]) T(std::move(*other.ptr(i))); } @@ -54,7 +54,7 @@ namespace dxvk { if (m_capacity > N) delete[] u.m_ptr; - if (other.m_size < N) { + if (other.m_size <= N) { m_capacity = N; for (size_t i = 0; i < other.m_size; i++) { new (&u.m_data[i]) T(std::move(*other.ptr(i)));