summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorpetrie911 <petrie911@users.noreply.github.com>2022-10-09 12:28:47 -0500
committerpetrie911 <petrie911@users.noreply.github.com>2022-10-09 12:28:47 -0500
commit01bcdd939cdca378f030ea5ae792dbaa27588dec (patch)
tree11b3f9b46b50dbc98e46c96d1a2ef1675084a5c2 /docs
parentb7b4b09e4d329cdf71480d799f6dd3a237bb809a (diff)
parente75b0c51f5a0856e03d7c5fd2e16171a982c4e53 (diff)
Merge remote-tracking branch 'upstream/master' into Aliens
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial/other_functions.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/other_functions.md b/docs/tutorial/other_functions.md
index 255ae9eb4..1c8ba6b5b 100644
--- a/docs/tutorial/other_functions.md
+++ b/docs/tutorial/other_functions.md
@@ -401,7 +401,7 @@ There remains one thing we need to fix before trying to compile it, namely `*(&g
```C
/* 0x0EF8 */ u8 weekEventReg[100]; // "week_event_reg"
- /* 0x0F5C */ u32 mapsVisited; // "area_arrival"
+ /* 0x0F5C */ u32 regionsVisited; // "area_arrival"
```
so it's somewhere in `weekEventReg`. `0xF37 - 0xEF8 = 0x3F = 63`, and it's a byte array, so the access is actually `gSaveContext.save.weekEventReg[63] & 0x80`. Now it will compile. We also don't use `!= 0` for flag comparisons: just `if (gSaveContext.save.weekEventReg[63] & 0x80)` will do.