(perform_mission): Fix destruction of missiles. Closes bug#789415.
This commit is contained in:
parent
f922b09074
commit
291e538045
1 changed files with 3 additions and 1 deletions
|
@ -682,8 +682,10 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
|
|||
"sector", victim, mission);
|
||||
qp = missiles.q_forw;
|
||||
while (qp != (&missiles)) {
|
||||
qp = qp->q_forw;
|
||||
newqp = qp->q_forw;
|
||||
emp_remque(qp);
|
||||
free(qp);
|
||||
qp = newqp;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue