fixed broken bitsets

Daniel Gultsch created

Change summary

src/de/gultsch/chat/entities/Account.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Detailed changes

src/de/gultsch/chat/entities/Account.java 🔗

@@ -83,9 +83,9 @@ public class Account  extends AbstractEntity{
 	
 	public void setOption(int option, boolean value) {
 		if (value) {
-			this.options = (this.options | 1 << option);
+			this.options |= 1 << option;
 		} else {
-			this.options = (this.options & 0 << option);
+			this.options &= ~(1 << option);
 		}
 	}