summaryrefslogtreecommitdiff
path: root/src/entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entity.c b/src/entity.c
index 00e6719..044bb7b 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -100,5 +100,6 @@ entity_move(Entity *this, Game *g)
Entity *
entity_init(Entity *this, unsigned int type, int x, int y)
{
- return entitytags[type - 1].init(this, x, y);
+ entitytags[type - 1].init(this, x, y);
+ return this;
}