forked from github/server
Fehelr bei doppeltem auftreten von at_reduceproduction durch erneuten vulkanausbruch (doppeltes a_add())
This commit is contained in:
parent
dbe21d9d47
commit
ac63c6284f
|
@ -785,7 +785,7 @@ volcano_outbreak(region *r)
|
|||
rsettrees(r, 0);
|
||||
#endif
|
||||
|
||||
a = a_add(&rn->attribs, a_new(&at_reduceproduction));
|
||||
a = a_find(rn->attribs, &at_reduceproduction);
|
||||
if (!a) a = a_add(&r->attribs, a_new(&at_reduceproduction));
|
||||
|
||||
/* Produktion vierteln ... */
|
||||
|
|
Loading…
Reference in New Issue