Use ITEM_MAX instead of 9999 as production material limit

No functional change, as ITEM_MAX is 9999, just cleaner.
This commit is contained in:
Markus Armbruster 2013-05-04 08:53:03 +02:00
parent f0927e7f64
commit 87b29f784d

View file

@ -183,7 +183,7 @@ prod_materials_cost(struct pchrstr *pp, short vec[], int *costp)
int cost;
int i, n;
count = 9999;
count = ITEM_MAX;
cost = 0;
for (i = 0; i < MAXPRCON; ++i) {
if (!pp->p_camt[i])