forked from github/server
BUG 2448: Default-Attacken respektieren!
This commit is contained in:
parent
a62541a17e
commit
34d0b56c68
1 changed files with 5 additions and 1 deletions
|
@ -1092,9 +1092,13 @@ static void start_races(parseinfo *pi, const XML_Char *el, const XML_Char **attr
|
||||||
|
|
||||||
name = attr_get(attr, "name");
|
name = attr_get(attr, "name");
|
||||||
if (name) {
|
if (name) {
|
||||||
|
int i;
|
||||||
|
|
||||||
assert(!rc);
|
assert(!rc);
|
||||||
pi->object = rc = rc_get_or_create(name);
|
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) {
|
for (i = 0; attr[i]; i += 2) {
|
||||||
const XML_Char *key = attr[i], *val = attr[i + 1];
|
const XML_Char *key = attr[i], *val = attr[i + 1];
|
||||||
|
|
Loading…
Reference in a new issue