forked from github/server
CID 22474 Evaluation order violation
This commit is contained in:
parent
7efda5f967
commit
04b5bc0c60
|
@ -244,7 +244,7 @@ const char *raceprefix(const unit * u)
|
|||
const attrib *asource = u->faction->attribs;
|
||||
|
||||
if (fval(u, UFL_GROUP)) {
|
||||
const attrib *agroup = agroup = a_findc(u->attribs, &at_group);
|
||||
const attrib *agroup = a_findc(u->attribs, &at_group);
|
||||
if (agroup != NULL)
|
||||
asource = ((const group *)(agroup->data.v))->attribs;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue