From 250d8d00b567b966ffc9c2c5ee17eee6a4d0f1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Mon, 22 May 2023 13:33:40 +0200 Subject: [PATCH] Fix compile issue in not very conformant compilers --- scene/main/node.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scene/main/node.h b/scene/main/node.h index 4d4e71ee566..42539284271 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -52,13 +52,17 @@ protected: // During group processing, these are thread-safe. // Outside group processing, these avoid the cost of sync by working as plain primitive types. union MTFlag { - SafeFlag mt{}; + SafeFlag mt; bool st; + MTFlag() : + mt{} {} }; template union MTNumeric { - SafeNumeric mt{}; + SafeNumeric mt; T st; + MTNumeric() : + mt{} {} }; public: