aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}