forked from github/server
some cleanup
This commit is contained in:
parent
c22f49ec36
commit
c41d185cd6
1 changed files with 1 additions and 4 deletions
|
@ -1870,10 +1870,7 @@ static int parse_races(xmlDocPtr doc)
|
||||||
propValue = xmlGetProp(node, BAD_CAST "race");
|
propValue = xmlGetProp(node, BAD_CAST "race");
|
||||||
assert(propValue != NULL);
|
assert(propValue != NULL);
|
||||||
frc = rc_find((const char *)propValue);
|
frc = rc_find((const char *)propValue);
|
||||||
if (frc == NULL) {
|
if (!frc) {
|
||||||
/* log_error(("%s not registered, is familiar for %s\n", */
|
|
||||||
/* (const char*)propValue, rc->_name[0])); */
|
|
||||||
/* assert(frc!=NULL); */
|
|
||||||
frc = rc_add(rc_new((const char *)propValue));
|
frc = rc_add(rc_new((const char *)propValue));
|
||||||
}
|
}
|
||||||
if (xml_bvalue(node, "default", false)) {
|
if (xml_bvalue(node, "default", false)) {
|
||||||
|
|
Loading…
Reference in a new issue