asserting that people don't do stupid things.

This commit is contained in:
Enno Rehling 2007-02-07 17:49:26 +00:00
parent eb2603248d
commit eb0843b92c
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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);
}