From b71bfbaa9d483d0fd00801fffa1e2a7c7fa32656 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 21 Feb 2014 19:14:03 +0100 Subject: [PATCH] fixed broken bitsets --- src/de/gultsch/chat/entities/Account.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/gultsch/chat/entities/Account.java b/src/de/gultsch/chat/entities/Account.java index dce5677e1..3ffc75f92 100644 --- a/src/de/gultsch/chat/entities/Account.java +++ b/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); } }