diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-21 19:14:03 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-02-21 19:14:03 +0100 |
commit | b71bfbaa9d483d0fd00801fffa1e2a7c7fa32656 (patch) | |
tree | 4e42b60c02380c256d197384433ed3e95b1f687c /src/de | |
parent | c82179c0b8728a9c2cd567d4227c60c758a1e682 (diff) |
fixed broken bitsets
Diffstat (limited to '')
-rw-r--r-- | src/de/gultsch/chat/entities/Account.java | 4 |
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 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); } } |