forked from github/server
asserting that people don't do stupid things.
This commit is contained in:
parent
eb2603248d
commit
eb0843b92c
|
@ -3275,7 +3275,7 @@ new_units (void)
|
|||
|
||||
g = getguard(u);
|
||||
if (g) setguard(u2, g);
|
||||
else setguard(u, GUARD_NONE);
|
||||
/* else setguard(u2, GUARD_NONE); */
|
||||
|
||||
ordp = &makeord->next;
|
||||
newordersp = &u2->orders;
|
||||
|
|
|
@ -2432,6 +2432,7 @@ setguard(unit * u, unsigned int flags)
|
|||
{
|
||||
/* setzt die guard-flags der Einheit */
|
||||
attrib * a = NULL;
|
||||
assert(flags==0 || !fval(u, UFL_MOVED));
|
||||
if (fval(u, UFL_GUARD)) {
|
||||
a = a_find(u->attribs, &at_guard);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue