forked from github/server
memory leak of fighters' weapons in combat
This commit is contained in:
parent
304ac20747
commit
9ed93308ff
|
@ -114,11 +114,11 @@ static int missile_range[2] = {FIGHT_ROW, BEHIND_ROW};
|
||||||
static int melee_range[2] = {FIGHT_ROW, FIGHT_ROW};
|
static int melee_range[2] = {FIGHT_ROW, FIGHT_ROW};
|
||||||
|
|
||||||
typedef struct armor_type {
|
typedef struct armor_type {
|
||||||
double penalty;
|
double penalty;
|
||||||
double magres;
|
double magres;
|
||||||
int prot;
|
int prot;
|
||||||
char shield;
|
char shield;
|
||||||
char item;
|
char item;
|
||||||
} armor_type;
|
} armor_type;
|
||||||
|
|
||||||
static armor_type armordata[AR_NONE + 1] =
|
static armor_type armordata[AR_NONE + 1] =
|
||||||
|
@ -3215,7 +3215,8 @@ free_side(side * si)
|
||||||
static void
|
static void
|
||||||
free_fighter(fighter * fig)
|
free_fighter(fighter * fig)
|
||||||
{
|
{
|
||||||
free(fig->person);
|
free(fig->person);
|
||||||
|
free(fig->weapons);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue