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:
Markus Armbruster 2014-01-25 11:25:43 +01:00
parent 52a40481cb
commit c274d0820c
2 changed files with 3 additions and 3 deletions

View file

@ -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;