Преглед изворни кода

Merge pull request #1215 from adamscott/fix-deprecated-builtins-clang-2

Fix forgotten not operator
Rémi Verschelde пре 2 година
родитељ
комит
74b352e979
1 измењених фајлова са 1 додато и 1 уклоњено
  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);