kingdoms: removing crash if seeds don't exist.

This commit is contained in:
Enno Rehling 2005-11-25 23:57:58 +00:00
parent 3ae0abad4b
commit fd3b6ac6d3
1 changed files with 6 additions and 6 deletions

View File

@ -52,13 +52,13 @@ init_seed(void)
resource_limit * rdata;
rt_seed = rt_find("seed");
assert(rt_seed!=NULL);
if (rt_seed!=NULL) {
a = a_add(&rt_seed->attribs, a_new(&at_resourcelimit));
rdata = (resource_limit*)a->data.v;
rdata->limit = limit_seeds;
rdata->use = produce_seeds;
}
}
/* mallorn */