Browse Source

Fix forgotten not operator

(cherry picked from commit f5c8e5190f1cca0984c7cab3205a236cf9d9625c)
Adam Scott 2 years ago
parent
commit
c7afd0f89a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/godot_cpp/templates/cowdata.hpp

+ 1 - 1
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);