Mercurial > molko
diff src/libmlk-rpg/rpg/map-file.c @ 404:7321511052f6
core: rework alloc module
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 02 Apr 2022 16:58:33 +0200 |
parents | 460c78706989 |
children | d74f53299252 |
line wrap: on
line diff
--- a/src/libmlk-rpg/rpg/map-file.c Sat Apr 02 16:58:23 2022 +0200 +++ b/src/libmlk-rpg/rpg/map-file.c Sat Apr 02 16:58:33 2022 +0200 @@ -278,8 +278,8 @@ memset(map, 0, sizeof (*map)); - if (alloc_pool_init(&file->blocks, sizeof (*map->blocks), NULL) < 0) - goto fail; + alloc_pool_init(&file->blocks, sizeof (*map->blocks), NULL); + if (zfile_open(&zf, path) < 0) goto fail;