]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/plnsub.c
(mchrstr, lchrstr): Change from variable-style storage of load
[empserver] / src / lib / subs / plnsub.c
index 3e0bc1adc07e54796b586e38eddcd6ef16c62a90..cd2cb116b10c90f22d02b3515ecffcce223a52f9 100644 (file)
@@ -303,8 +303,7 @@ pln_dropoff(struct emp_qelem *list, struct ichrstr *ip, coord tx, coord ty,
        sp = ptr;
        there = sp->shp_item[ip->i_vtype];
        mp = &mchr[(int)sp->shp_type];
-       max = vl_find(ip->i_vtype, mp->m_vtype,
-                     mp->m_vamt, (int)mp->m_nv);
+       max = mp->m_item[ip->i_vtype];
     }
     there += amt;
     if (there > max) {