summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 6967a3a..5166d99 100644
--- a/src/game.c
+++ b/src/game.c
@@ -63,12 +63,12 @@ game_restart_scene(Game *this)
const __auto_type objects = map_objects(&size);
for (__auto_type i = 0u; i < size; i++) {
const __auto_type object = &objects[i];
- const __auto_type type = entity_type(object->name);
+ const __auto_type type = entity_type(object->type);
if (type == 0)
continue;
const __auto_type x = object->x + object->width / 2;
const __auto_type y = object->y + object->height / 2;
- entity_init(game_create_entity(this), type, x, y,
+ entity_init(game_create_entity(this), type, object->name, x, y,
object->width, object->height);
}
}