summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-05-22 13:56:19 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-05-22 13:56:19 +0200
commitb85269cd8b6c0b8c4b3bf6d1255f79b6cac04ec2 (patch)
tree1d1f46bd71465de444bea690231545bcb61f72c4
parent0bdea7209246607bd72174c27aa448ec407875bf (diff)
parent250d8d00b567b966ffc9c2c5ee17eee6a4d0f1f0 (diff)
downloadredot-engine-b85269cd8b6c0b8c4b3bf6d1255f79b6cac04ec2.tar.gz
Merge pull request #77342 from RandomShaper/fix_build_bad_compiler
Fix compile issue in not very conformant compilers
-rw-r--r--scene/main/node.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/scene/main/node.h b/scene/main/node.h
index 4d4e71ee56..4253928427 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 <class T>
union MTNumeric {
- SafeNumeric<T> mt{};
+ SafeNumeric<T> mt;
T st;
+ MTNumeric() :
+ mt{} {}
};
public: