]> git.pond.sub.org Git - empserver/commitdiff
Oops when air_defense() somehow leaks interceptors
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 22 Mar 2008 18:47:30 +0000 (19:47 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 26 Mar 2008 21:09:06 +0000 (22:09 +0100)
src/lib/subs/mission.c

index 04fd878d7d349b3782484501cfd07b929c6c65ae..c8ee9cfd0cb7560b037d58d24819b8be1b2ecce6 100644 (file)
@@ -1426,6 +1426,8 @@ air_defense(coord x, coord y, natid victim, struct emp_qelem *bomb_list,
 
            pln_put(&i);
        }
 
            pln_put(&i);
        }
+       if (CANT_HAPPEN(!QEMPTY(&interceptors)))
+           pln_put(&interceptors);
     }
 
     /* We have to free all of these, if they are still there, otherwise they get
     }
 
     /* We have to free all of these, if they are still there, otherwise they get