forked from github/server
fix for fix_familiars complaining about goblins.
indentation fixes.
This commit is contained in:
parent
8c2e545698
commit
fc70d1d66a
|
@ -833,8 +833,10 @@ fix_familiars(void)
|
|||
region * r;
|
||||
for (r=regions;r;r=r->next) {
|
||||
unit * u;
|
||||
for (u=r->units;u;u=u->next) if (u->faction->no!=MONSTER_FACTION) {
|
||||
if (u->race->init_familiar) {
|
||||
for (u=r->units;u;u=u->next) {
|
||||
if (u->faction->no!=MONSTER_FACTION && u->race->init_familiar) {
|
||||
attrib * a = a_find(u->attribs, &at_familiar);
|
||||
if (a!=NULL) {
|
||||
/* this is a familiar */
|
||||
unit * mage = get_familiar_mage(u);
|
||||
equipment * eq;
|
||||
|
@ -878,6 +880,7 @@ fix_familiars(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue