From 99ab9bd22be2506c23d1e379f35583ddab4eadf6 Mon Sep 17 00:00:00 2001 From: zlago Date: Fri, 4 Oct 2024 21:38:14 +0200 Subject: map transitions --- src/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/loader.c') diff --git a/src/loader.c b/src/loader.c index f132b7a..2382246 100644 --- a/src/loader.c +++ b/src/loader.c @@ -226,7 +226,7 @@ void res_push_collision(struct blob *blob, name_T name) { collisions = res_push_blob(blob, name, collisions, blob_free_func); } -void res_push_fun(struct entity *(*newfun)(void), int (*setfun)(struct entity *const restrict self, char const *const restrict key, char const *const restrict value), name_T name) { +void res_push_fun(void *(*newfun)(struct entities *entities), int (*setfun)(void *const restrict self, char const *const restrict key, char const *const restrict value), name_T name) { int found; struct fun_item new = {.funs = {.newfun = newfun, .setfun = setfun}, .name = name}; struct fun_item *dst = bsearchinsertposition(&new, funs.items, funs.count, sizeof (struct fun_item), res_compare_funs, &found); -- cgit 1.4.1-2-gfad0