diff --git a/include/godot_cpp/templates/cowdata.hpp b/include/godot_cpp/templates/cowdata.hpp index ee3f5a467..d3ea982bd 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);