]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/ship.c
Replace getvec() by direct, read-only item access in some cases where
[empserver] / src / lib / update / ship.c
index ee991b2906682bc82bc9a3ad82bc64c03483d7f4..d4c7628a12961431044cf1c3db43e82d83909861 100644 (file)
@@ -277,7 +277,6 @@ shiprepair(register struct shpstr *ship, int *vec, struct natstr *np,
     int avail;
     int w_p_eff;
     int mult;
-    int svec[I_MAX + 1];
     int mvec[I_MAX + 1];
     int rel;
 
@@ -348,8 +347,6 @@ shiprepair(register struct shpstr *ship, int *vec, struct natstr *np,
     if ((sp->sct_off) && (sp->sct_own == ship->shp_own))
        return 1;
 
-    getvec(VT_ITEM, svec, (s_char *)sp, EF_SECTOR);
-
     mult = 1;
     if (np->nat_level[NAT_TLEV] < ship->shp_tech * 0.85)
        mult = 2;