I haven't been active in the past decade, but here's a small patch. Main
branch only. This adds a check when setting a new fruit so that if no fruits have been created since the last time the option has been set, the current fruit is overwritten. Result: the user cannot repeatedly set the fruit option and overflow the maximum fruit number.
This commit is contained in:
@@ -508,7 +508,7 @@ register struct obj *otmp;
|
||||
if (oldf->fid == otmp->spe) break;
|
||||
|
||||
if (!oldf) impossible("no old fruit?");
|
||||
else otmp->spe = fruitadd(oldf->fname);
|
||||
else otmp->spe = fruitadd(oldf->fname, (struct fruit *)0);
|
||||
}
|
||||
|
||||
STATIC_OVL
|
||||
|
||||
Reference in New Issue
Block a user