fix swapped assertions.

This commit is contained in:
Enno Rehling 2016-10-30 09:49:30 +01:00
parent eb7199450d
commit 2953a5f036
1 changed files with 2 additions and 2 deletions

View File

@ -82,10 +82,10 @@ void setguard(unit * u, unsigned int flags)
{
bool enabled = (flags!=GUARD_NONE);
if (!enabled) {
assert(!fval(u, UFL_MOVED));
assert(u->status < ST_FLEE);
freset(u, UFL_GUARD);
} else {
assert(!fval(u, UFL_MOVED));
assert(u->status < ST_FLEE);
fset(u, UFL_GUARD);
fset(u->region, RF_GUARDED);
}