diff options
Diffstat (limited to 'src/loader.c')
-rw-r--r-- | src/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |