Skip to content

Commit 640e55e

Browse files
committed
Default initialize entity group
1 parent 10042f6 commit 640e55e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Scene/Entity.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct Entity : DLinkedNode<Entity>
195195
Entity* parent = nullptr;
196196
Entity* nextSibling = nullptr;
197197
Entity* children = nullptr;
198-
EntityGroup* entityGroup;
198+
EntityGroup* entityGroup = nullptr;
199199

200200
ISyncVar* syncVarHead = nullptr;
201201

src/Scene/EntityManager.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct EntityManager
103103

104104
FixedSizeVector<EntityHeader, MaxEntities> entityHeaders;
105105

106-
robin_hood::unordered_flat_set<Entity*> entities;
106+
robin_hood::unordered_flat_set<Entity*> entities;
107107
robin_hood::unordered_flat_set<EntityGroup*> updatables;
108108
robin_hood::unordered_flat_set<EntityGroup*> serverUpdatables;
109109
robin_hood::unordered_flat_set<EntityGroup*> fixedUpdatables;

0 commit comments

Comments
 (0)