summaryrefslogtreecommitdiff
path: root/src/object
diff options
context:
space:
mode:
Diffstat (limited to 'src/object')
-rw-r--r--src/object/lightableSwitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object/lightableSwitch.c b/src/object/lightableSwitch.c
index ecc6449e..16609d50 100644
--- a/src/object/lightableSwitch.c
+++ b/src/object/lightableSwitch.c
@@ -60,7 +60,7 @@ void sub_0809EABC(Entity* this) {
u32 f;
f = CheckFlags(this->field_0x86.HWORD);
- anySet = (-f | f) >> 0x1F;
+ anySet = BOOLCAST(f);
if (this->frameIndex != anySet) {
this->frameIndex = anySet;
}