set_uinwater() bit

Assignment target is a one bit wide bitfield; callers only pass 0 or 1
but guarantee that value fits so that no compiler has reason to complain.
This commit is contained in:
PatR
2020-04-03 11:39:40 -07:00
parent e34f123698
commit d58e449d6c

View File

@@ -2091,7 +2091,7 @@ void
set_uinwater(in_out) set_uinwater(in_out)
int in_out; int in_out;
{ {
u.uinwater = in_out; u.uinwater = in_out ? 1 : 0;
} }
/* extracted from spoteffects; called by spoteffects to check for entering or /* extracted from spoteffects; called by spoteffects to check for entering or