Clean up casts from union empobj_storage * to struct empobj *
Take the address of member gen instead. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
52a40481cb
commit
c274d0820c
2 changed files with 3 additions and 3 deletions
|
@ -289,7 +289,7 @@ build_mission_list_type(struct genlist mi[], unsigned char act[],
|
|||
|
||||
snxtitem_all(&ni, type);
|
||||
while (nxtitem(&ni, &item)) {
|
||||
gp = (struct empobj *)&item;
|
||||
gp = &item.gen;
|
||||
|
||||
if (!act[gp->own])
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue