]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/wipe.c
Sectors need space for items, deliveries and distribution thresholds.
[empserver] / src / lib / commands / wipe.c
index 83af3a7d049b0d9960840d90357072d3ae7affa0..67523b25ed00328238c8cae324c4bdad9218bf01 100644 (file)
@@ -47,15 +47,13 @@ wipe(void)
 {
     struct sctstr sect;
     struct nstr_sect nstr;
-    int vec[I_MAX + 1];
 
     if (!snxtsct(&nstr, player->argp[1]))
        return RET_SYN;
-    memset(vec, 0, sizeof(vec));
     while (nxtsct(&nstr, &sect)) {
        if (!player->owner)
            continue;
-       putvec(VT_DIST, vec, (s_char *)&sect, EF_SECTOR);
+       memset(sect.sct_dist, 0, sizeof(sect.sct_dist));
        pr("Distribution thresholds wiped from %s\n",
           xyas(nstr.x, nstr.y, player->cnum));
        putsect(&sect);