Limit wizgenesis to max 255 monsters
This commit is contained in:
+1
-1
@@ -2465,7 +2465,7 @@ struct _create_particular_data *d;
|
|||||||
|
|
||||||
/* quantity */
|
/* quantity */
|
||||||
if (digit(*bufp) && strcmp(bufp, "0")) {
|
if (digit(*bufp) && strcmp(bufp, "0")) {
|
||||||
d->quan = atoi(bufp);
|
d->quan = min(255, atoi(bufp));
|
||||||
while (digit(*bufp))
|
while (digit(*bufp))
|
||||||
bufp++;
|
bufp++;
|
||||||
while (*bufp == ' ')
|
while (*bufp == ' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user