diff librpg/rpg/battle-state-victory.c @ 227:befa2e855d3b

core: reinterface the alloc module
author David Demelier <markand@malikania.fr>
date Thu, 19 Nov 2020 10:48:46 +0100
parents c0e0d4accae8
children 76afe639fd72
line wrap: on
line diff
--- a/librpg/rpg/battle-state-victory.c	Thu Nov 19 10:17:04 2020 +0100
+++ b/librpg/rpg/battle-state-victory.c	Thu Nov 19 10:48:46 2020 +0100
@@ -75,7 +75,7 @@
 
 	struct victory *vic;
 
-	if (!(vic = alloc_zero(1, sizeof (*vic))))
+	if (!(vic = alloc_new0(sizeof (*vic))))
 		panic();
 
 	/* TODO: compute money, xp and drop. */