aboutsummaryrefslogtreecommitdiff
path: root/src/entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index 0757109..f4c3747 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -59,6 +59,10 @@ Entity createEntity(EntityType type, Game * game) {
.updateCb = info.updateCb,
.drawCb = info.drawCb,
.health = ENTITY_MAX_HEALTH,
+ .follow = (EntityFollow){
+ .leaderId = ENTITY_NONE,
+ .followerId = ENTITY_NONE
+ },
.collision.hit = false,
.data = NULL
};