BUG 2448: Default-Attacken respektieren!

This commit is contained in:
Enno Rehling 2018-06-11 21:36:59 +02:00
parent a62541a17e
commit 34d0b56c68
1 changed files with 5 additions and 1 deletions

View File

@ -1092,9 +1092,13 @@ static void start_races(parseinfo *pi, const XML_Char *el, const XML_Char **attr
name = attr_get(attr, "name");
if (name) {
int i;
assert(!rc);
pi->object = rc = rc_get_or_create(name);
int i;
while (AT_NONE != rc->attack[nattacks].type) {
++nattacks;
}
for (i = 0; attr[i]; i += 2) {
const XML_Char *key = attr[i], *val = attr[i + 1];