diff options
Diffstat (limited to 'src/entity.c')
-rw-r--r-- | src/entity.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/entity.c b/src/entity.c index edb949e..8a4e45e 100644 --- a/src/entity.c +++ b/src/entity.c @@ -115,8 +115,9 @@ entity_move(Entity *this, [[maybe_unused]] struct Game *g) } Entity * -entity_init(Entity *this, unsigned int type, int x, int y, int w, int h) +entity_init(Entity *this, unsigned int type, const char *name, int x, int y, + int w, int h) { - entitytags[type - 1].init(this, x, y, w, h); + entitytags[type - 1].init(this, name, x, y, w, h); return this; } |