summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-10-01 02:30:10 -0400
committerhuderlem <huderlem@gmail.com>2019-10-16 20:22:11 -0500
commit11170ce90c0baf77b196e378441d25e7f16e2cf3 (patch)
treec3c37595941663287d60557ec6b98c84f06c6a43 /src
parent3773318935a8a94a8d48fe76f3868d3826c933b7 (diff)
Sync specialvars with pokeemerald
Diffstat (limited to 'src')
-rw-r--r--src/event_data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event_data.c b/src/event_data.c
index bfa9ff821..7c508f02b 100644
--- a/src/event_data.c
+++ b/src/event_data.c
@@ -114,9 +114,9 @@ u16 *GetVarPointer(u16 id)
{
if (id < VARS_START)
return NULL;
- if (id < 0x8000)
+ if (id < SPECIAL_VARS_START)
return &gSaveBlock1.vars[id - VARS_START];
- return gSpecialVars[id - 0x8000];
+ return gSpecialVars[id - SPECIAL_VARS_START];
}
u16 VarGet(u16 id)