]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/supply.c
(mchrstr, lchrstr): Change from variable-style storage of load
[empserver] / src / lib / subs / supply.c
index df0ac37dfece8d976ac9ffa6335a1c0c6447914c..d6c6cd00aeeb6ac74b7a2d8d31e0b51691a22637 100644 (file)
@@ -439,7 +439,7 @@ get_minimum(struct lndstr *lp, int type)
     int max, want = 0;
 
     lcp = &lchr[(int)lp->lnd_type];
-    max = vl_find(V_ITEM(type), lcp->l_vtype, lcp->l_vamt, (int)lcp->l_nv);
+    max = lcp->l_item[type];
 
     switch (type) {
     case I_FOOD: