Mercurial > molko
comparison libmlk-rpg/mlk/rpg/battle-state-check.c @ 460:8fa69c770569
examples: fix
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 09:14:27 +0100 |
parents | f2f0e73ea9da |
children | 91ce23a36143 |
comparison
equal
deleted
inserted
replaced
459:541cb950997b | 460:8fa69c770569 |
---|---|
73 } | 73 } |
74 | 74 |
75 static void | 75 static void |
76 fadeout_finish(struct mlk_drawable *dw) | 76 fadeout_finish(struct mlk_drawable *dw) |
77 { | 77 { |
78 free(dw->data); | 78 mlk_alloc_free(dw->data); |
79 } | 79 } |
80 | 80 |
81 static void | 81 static void |
82 fadeout(struct battle *bt, struct battle_entity *et) | 82 fadeout(struct battle *bt, struct battle_entity *et) |
83 { | 83 { |
162 static void | 162 static void |
163 finish(struct battle_state *st, struct battle *bt) | 163 finish(struct battle_state *st, struct battle *bt) |
164 { | 164 { |
165 (void)bt; | 165 (void)bt; |
166 | 166 |
167 free(st); | 167 mlk_alloc_free(st); |
168 } | 168 } |
169 | 169 |
170 void | 170 void |
171 battle_state_check_update(struct battle *bt) | 171 battle_state_check_update(struct battle *bt) |
172 { | 172 { |