]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/list.c
(have_looked,have_found,set_have_looked,set_have_found,print_found):
[empserver] / src / lib / subs / list.c
index 68df75f9ecbaddbb0702f496770c54dcf7b28ce4..7eb7f1b963d4d5bd1a40f034579f1ac53f95c132 100644 (file)
@@ -209,7 +209,7 @@ planesatxy(coord x, coord y, int wantflags, int nowantflags,
 
 int
 asw_shipsatxy(coord x, coord y, int wantflags, int nowantflags,
-             struct plnstr *pp, struct shiplook *head)
+             struct plnstr *pp, struct shiplist **head)
 {
     int first;
     int ships;
@@ -239,7 +239,7 @@ asw_shipsatxy(coord x, coord y, int wantflags, int nowantflags,
                                          shp_hardtarget(&ship), EF_SHIP))
                continue;
        }
-       set_have_found(ship.shp_uid, head);
+       add_shiplist(ship.shp_uid, head);
        if (first) {
            pr(" #          owner           eff       type\n");
            first = 0;