fixed broken bitsets

This commit is contained in:
Daniel Gultsch 2014-02-21 19:14:03 +01:00
parent c82179c0b8
commit b71bfbaa9d

View file

@ -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);
}
}