diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2022-02-11 14:43:38 -0500 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2022-02-11 14:43:38 -0500 |
commit | 24f18af338cd8608719e6b7b87424286331c6bba (patch) | |
tree | 80e5869b68368bd7ec9d11b3825f9d66610ee4ed /src/script.c | |
parent | 91076d9408ecf7546cae522b014ead6f31f7a9dd (diff) |
Add missing map constant usage
Diffstat (limited to 'src/script.c')
-rw-r--r-- | src/script.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/script.c b/src/script.c index c45c6744c..23973be9c 100644 --- a/src/script.c +++ b/src/script.c @@ -2,6 +2,7 @@ #include "script.h" #include "event_data.h" #include "quest_log.h" +#include "constants/maps.h" #define RAM_SCRIPT_MAGIC 51 #define SCRIPT_STACK_SIZE 20 @@ -511,9 +512,9 @@ bool32 ValidateRamScript(void) struct RamScriptData *scriptData = &gSaveBlock1Ptr->ramScript.data; if (scriptData->magic != RAM_SCRIPT_MAGIC) return FALSE; - if (scriptData->mapGroup != 0xFF) + if (scriptData->mapGroup != MAP_GROUP(UNDEFINED)) return FALSE; - if (scriptData->mapNum != 0xFF) + if (scriptData->mapNum != MAP_NUM(UNDEFINED)) return FALSE; if (scriptData->objectId != 0xFF) return FALSE; @@ -529,9 +530,9 @@ u8 *sub_8069E48(void) return NULL; if (scriptData->magic != RAM_SCRIPT_MAGIC) return NULL; - if (scriptData->mapGroup != 0xFF) + if (scriptData->mapGroup != MAP_GROUP(UNDEFINED)) return NULL; - if (scriptData->mapNum != 0xFF) + if (scriptData->mapNum != MAP_NUM(UNDEFINED)) return NULL; if (scriptData->objectId != 0xFF) return NULL; |