summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2023-08-16 05:30:40 -0400
committerAdam Scott <ascott.ca@gmail.com>2023-08-16 05:30:40 -0400
commitf5c8e5190f1cca0984c7cab3205a236cf9d9625c (patch)
treea7a1db9654010367ffae763e25c879928be3ceee /include/godot_cpp
parent524bbd3ee9c476b5ba35ae6ce1c3daa110726fc6 (diff)
downloadredot-cpp-f5c8e5190f1cca0984c7cab3205a236cf9d9625c.tar.gz
Fix forgotten not operator
Diffstat (limited to 'include/godot_cpp')
-rw-r--r--include/godot_cpp/templates/cowdata.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/godot_cpp/templates/cowdata.hpp b/include/godot_cpp/templates/cowdata.hpp
index ee3f5a4..d3ea982 100644
--- a/include/godot_cpp/templates/cowdata.hpp
+++ b/include/godot_cpp/templates/cowdata.hpp
@@ -213,7 +213,7 @@ void CowData<T>::_unref(void *p_data) {
}
// clean up
- if (std::is_trivially_destructible<T>::value) {
+ if (!std::is_trivially_destructible<T>::value) {
uint32_t *count = _get_size();
T *data = (T *)(count + 1);