summaryrefslogtreecommitdiff
path: root/scene/main/node.h
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
committerRafał Mikrut <mikrutrafal@protonmail.com>2021-02-09 18:24:36 +0100
commit7961a1dea3e7ce8c4e7197a0000e35ab31e9ff2e (patch)
tree9560a84f1300e2466338426f2e267adba6a06a53 /scene/main/node.h
parentdf9c98e107b19fc50bc5ae9f7ed624d693c0fb32 (diff)
Initialize class variables with default values in scene/ [2/2]
Diffstat (limited to 'scene/main/node.h')
-rw-r--r--scene/main/node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/node.h b/scene/main/node.h
index a0dca75791..5253ed2e45 100644
--- a/scene/main/node.h
+++ b/scene/main/node.h
@@ -80,7 +80,7 @@ private:
struct NetData {
StringName name;
- MultiplayerAPI::RPCMode mode;
+ MultiplayerAPI::RPCMode mode = MultiplayerAPI::RPCMode::RPC_MODE_DISABLED;
};
struct Data {
@@ -297,7 +297,7 @@ public:
struct GroupInfo {
StringName name;
- bool persistent;
+ bool persistent = false;
};
void get_groups(List<GroupInfo> *p_groups) const;