Z
zilleeizad
i am using a couple of bool flags to determine certain conditions. these
flags are private members of a class. inside a method, i reset both the
flags before i go into an if-else where if the condition is true, i set
flag1, else i set flag2. my problem is that the flag2 gets set along with
flag1 without my doing so. flag2 is defined after flag1 in the class. if i
swap the definition sequence, the behaviour switches as well. any ideas?
flags are private members of a class. inside a method, i reset both the
flags before i go into an if-else where if the condition is true, i set
flag1, else i set flag2. my problem is that the flag2 gets set along with
flag1 without my doing so. flag2 is defined after flag1 in the class. if i
swap the definition sequence, the behaviour switches as well. any ideas?