summaryrefslogtreecommitdiff
path: root/engine/map_objects.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/map_objects.asm')
-rw-r--r--engine/map_objects.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/map_objects.asm b/engine/map_objects.asm
index 503dac46d..a50650863 100644
--- a/engine/map_objects.asm
+++ b/engine/map_objects.asm
@@ -894,7 +894,7 @@ MapObjectMovementPattern: ; 47dd
ld hl, OBJECT_DIRECTION_WALKING
add hl, de
ld a, [hl]
- and 3
+ maskbits NUM_DIRECTIONS +- 1
ld d, 1 * 8 + 6
cp DOWN
jr z, .ok_13