Limit wizgenesis to max 255 monsters

This commit is contained in:
Pasi Kallinen
2020-03-08 00:15:28 +02:00
parent fcfa5dc267
commit aca240c928

View File

@@ -2465,7 +2465,7 @@ struct _create_particular_data *d;
/* quantity */
if (digit(*bufp) && strcmp(bufp, "0")) {
d->quan = atoi(bufp);
d->quan = min(255, atoi(bufp));
while (digit(*bufp))
bufp++;
while (*bufp == ' ')