From f5c8e5190f1cca0984c7cab3205a236cf9d9625c 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 --- 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);