Mercurial > molko
diff libmlk-rpg/mlk/rpg/battle-state-check.c @ 442:9c3b3935f0aa
core: rework allocations
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 03 Nov 2022 21:09:25 +0100 |
parents | 25a56ca53ac2 |
children | 773a082f0b91 |
line wrap: on
line diff
--- a/libmlk-rpg/mlk/rpg/battle-state-check.c Mon Oct 24 21:29:39 2022 +0200 +++ b/libmlk-rpg/mlk/rpg/battle-state-check.c Thu Nov 03 21:09:25 2022 +0100 @@ -88,7 +88,7 @@ return; } - fade = mlk_alloc_new0(sizeof (*fade)); + fade = mlk_alloc_new0(1, sizeof (*fade)); fade->ch = et->ch; fade->x = et->x; fade->y = et->y; @@ -197,7 +197,7 @@ struct battle_state *self; - self = mlk_alloc_new0(sizeof (*self)); + self = mlk_alloc_new0(1, sizeof (*self)); self->data = bt; self->update = update; self->draw = draw;