Mercurial > molko
comparison libmlk-rpg/mlk/rpg/battle-bar-default.c @ 438:25a56ca53ac2
core: update mlk-alloc module
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 17 Oct 2022 14:22:07 +0200 |
parents | 4e78f045e8c0 |
children | 9c3b3935f0aa |
comparison
equal
deleted
inserted
replaced
437:e1eebc6bf25d | 438:25a56ca53ac2 |
---|---|
554 assert(bt); | 554 assert(bt); |
555 assert(ch); | 555 assert(ch); |
556 | 556 |
557 (void)bt; | 557 (void)bt; |
558 | 558 |
559 bar->items = alloc_rearray0(bar->items, bar->itemsz, | 559 bar->items = mlk_alloc_rearray0(bar->items, bar->itemsz, |
560 CHARACTER_SPELL_MAX, sizeof (*bar->items)); | 560 CHARACTER_SPELL_MAX, sizeof (*bar->items)); |
561 bar->itemsz = CHARACTER_SPELL_MAX; | 561 bar->itemsz = CHARACTER_SPELL_MAX; |
562 bar->state = BATTLE_BAR_DEFAULT_STATE_GRID; | 562 bar->state = BATTLE_BAR_DEFAULT_STATE_GRID; |
563 | 563 |
564 for (size_t i = 0; i < CHARACTER_SPELL_MAX; ++i) | 564 for (size_t i = 0; i < CHARACTER_SPELL_MAX; ++i) |