memory leak of fighters' weapons in combat

This commit is contained in:
Enno Rehling 2005-04-30 11:50:19 +00:00
parent 304ac20747
commit 9ed93308ff
1 changed files with 7 additions and 6 deletions

View File

@ -114,11 +114,11 @@ static int missile_range[2] = {FIGHT_ROW, BEHIND_ROW};
static int melee_range[2] = {FIGHT_ROW, FIGHT_ROW};
typedef struct armor_type {
double penalty;
double magres;
int prot;
char shield;
char item;
double penalty;
double magres;
int prot;
char shield;
char item;
} armor_type;
static armor_type armordata[AR_NONE + 1] =
@ -3215,7 +3215,8 @@ free_side(side * si)
static void
free_fighter(fighter * fig)
{
free(fig->person);
free(fig->person);
free(fig->weapons);
}
static void