From c7afd0f89a5fbc459f00c5c2e34dbe12b8a3f817 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Wed, 16 Aug 2023 05:30:40 -0400 Subject: [PATCH] Fix forgotten not operator (cherry picked from commit f5c8e5190f1cca0984c7cab3205a236cf9d9625c) --- include/godot_cpp/templates/cowdata.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/godot_cpp/templates/cowdata.hpp b/include/godot_cpp/templates/cowdata.hpp index ee3f5a46..d3ea982b 100644 --- a/include/godot_cpp/templates/cowdata.hpp +++ b/include/godot_cpp/templates/cowdata.hpp @@ -213,7 +213,7 @@ void CowData::_unref(void *p_data) { } // clean up - if (std::is_trivially_destructible::value) { + if (!std::is_trivially_destructible::value) { uint32_t *count = _get_size(); T *data = (T *)(count + 1);