forked from github/server
fix swapped assertions.
This commit is contained in:
parent
eb7199450d
commit
2953a5f036
|
@ -82,10 +82,10 @@ void setguard(unit * u, unsigned int flags)
|
||||||
{
|
{
|
||||||
bool enabled = (flags!=GUARD_NONE);
|
bool enabled = (flags!=GUARD_NONE);
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
assert(!fval(u, UFL_MOVED));
|
|
||||||
assert(u->status < ST_FLEE);
|
|
||||||
freset(u, UFL_GUARD);
|
freset(u, UFL_GUARD);
|
||||||
} else {
|
} else {
|
||||||
|
assert(!fval(u, UFL_MOVED));
|
||||||
|
assert(u->status < ST_FLEE);
|
||||||
fset(u, UFL_GUARD);
|
fset(u, UFL_GUARD);
|
||||||
fset(u->region, RF_GUARDED);
|
fset(u->region, RF_GUARDED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue