I believe there are 32 flags -- 0 thru 31
After that they wrap around so flag 32 is really flag 0 and so forth.

It does need to give you a warning in the event editor if this is the case.