aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-21 19:14:03 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-21 19:14:03 +0100
commitb71bfbaa9d483d0fd00801fffa1e2a7c7fa32656 (patch)
tree4e42b60c02380c256d197384433ed3e95b1f687c /src
parentc82179c0b8728a9c2cd567d4227c60c758a1e682 (diff)
fixed broken bitsets
Diffstat (limited to '')
-rw-r--r--src/de/gultsch/chat/entities/Account.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/gultsch/chat/entities/Account.java b/src/de/gultsch/chat/entities/Account.java
index dce5677e..3ffc75f9 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);
}
}