From 71988d991291c6304550c1b7e0d35fa2262311a4 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 27 Feb 2011 20:53:19 -0800 Subject: [PATCH] remove cvector.[hc] completely --- src/spells/combatspells.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/spells/combatspells.c b/src/spells/combatspells.c index d865b047f..539908475 100644 --- a/src/spells/combatspells.c +++ b/src/spells/combatspells.c @@ -1319,12 +1319,12 @@ static void do_meffect(fighter * af, int typ, int effect, int duration) { battle *b = af->side->battle; - meffect *meffect = calloc(1, sizeof(struct meffect)); - cv_pushback(&b->meffects, meffect); - meffect->magician = af; - meffect->typ = typ; - meffect->effect = effect; - meffect->duration = duration; + meffect *me = (meffect *)malloc(sizeof(struct meffect)); + ql_push(&b->meffects, me); + me->magician = af; + me->typ = typ; + me->effect = effect; + me->duration = duration; } int