Originally posted by Zaei
That is why you use powers of two when setting flags... 1, 2, 4, 8, 16, 32, etc.

Z.
That makes sense. Thanks.