forked from github/server
init construction defaults.
This commit is contained in:
parent
ec9038a5ea
commit
177e0159c4
1 changed files with 3 additions and 0 deletions
|
@ -392,6 +392,9 @@ static void XMLCALL start_resources(parseinfo *pi, const XML_Char *el, const XML
|
|||
if (xml_strcmp(el, "construction") == 0) {
|
||||
construction *con = calloc(sizeof(construction), 1);
|
||||
int i;
|
||||
con->maxsize = -1;
|
||||
con->minskill = -1;
|
||||
con->reqsize = 1;
|
||||
for (i = 0; attr[i]; i += 2) {
|
||||
if (xml_strcmp(attr[i], "skill") == 0) {
|
||||
con->skill = findskill(attr[i + 1]);
|
||||
|
|
Loading…
Reference in a new issue