Fix memory leak in air_defense() oops

Broken in commit 9c27a771.
This commit is contained in:
Markus Armbruster 2008-03-22 19:46:47 +01:00
parent 6fe12d0b7f
commit f105db1082

View file

@ -1381,8 +1381,10 @@ air_defense(coord x, coord y, natid victim, struct emp_qelem *bomb_list,
}
path = BestAirPath(buf, air->x, air->y, x, y);
if (CANT_HAPPEN(!path))
if (CANT_HAPPEN(!path)) {
pln_put(&i);
continue;
}
wu(0, cn, "Flying %s mission from %s\n",
mission_name(MI_AIR_DEFENSE), xyas(air->x, air->y, cn));
if (air->own && (air->own != cn)) {