summaryrefslogtreecommitdiff
path: root/src/frontier_pass.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-08-21 12:44:07 -0400
committerGitHub <noreply@github.com>2020-08-21 12:44:07 -0400
commitcd895e497d68bf9adbaa067dc411cc99a3bd1a4b (patch)
treead8bed728bb939cf08fbb8b9fd7d4c009a06459e /src/frontier_pass.c
parent6c34effda93c67a37895e79b684b31b3cb9a2a88 (diff)
parent0e7f634b00f904ac29088f3b7fdac0c51999be2d (diff)
Merge pull request #1141 from GriffinRichards/add-nonmatch
Wrap asm statements in NONMATCHING
Diffstat (limited to 'src/frontier_pass.c')
-rw-r--r--src/frontier_pass.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frontier_pass.c b/src/frontier_pass.c
index 024a954d1..adc02f90b 100644
--- a/src/frontier_pass.c
+++ b/src/frontier_pass.c
@@ -1239,7 +1239,9 @@ static void sub_80C6104(u8 cursorArea, u8 previousCursorArea)
if (!var)
{
- asm("":::"r4");
+ #ifndef NONMATCHING
+ asm("":::"r4");
+ #endif
if (previousCursorArea == CURSOR_AREA_NOTHING || previousCursorArea > CURSOR_AREA_CANCEL)
return;
}