From 767dbf521cf611043a979590910b51b14eefd191 Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 23 Mar 2023 22:19:43 +0100 Subject: [PATCH] Vector: Fix crash when trying to use vector after a call to clear() --- libluna/include/luna/Vector.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libluna/include/luna/Vector.h b/libluna/include/luna/Vector.h index 33a8c43b..4a1ac128 100644 --- a/libluna/include/luna/Vector.h +++ b/libluna/include/luna/Vector.h @@ -164,6 +164,7 @@ template class Vector { m_size = m_capacity = 0; free_impl(m_data); + m_data = nullptr; } private: