Clean up casts from struct FOO * to struct emp_qelem *
Take the address of the queue member instead. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
4d899f6e6d
commit
52a40481cb
4 changed files with 10 additions and 10 deletions
|
@ -1428,7 +1428,7 @@ put_oland(struct emp_qelem *list)
|
|||
llp->mobil = 0.0;
|
||||
putland(llp->unit.land.lnd_uid, &llp->unit.land);
|
||||
if (llp->unit.land.lnd_own != player->cnum) {
|
||||
emp_remque((struct emp_qelem *)llp);
|
||||
emp_remque(&llp->queue);
|
||||
free(llp);
|
||||
} else
|
||||
get_oland(A_ATTACK, llp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue