diff options
author | Cheng Hann Gan <chenghanngan.us@gmail.com> | 2021-10-15 18:30:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 15:30:33 -0700 |
commit | 3f7ee3a806d965fae70fd98f2cd1af13a2e4cf0b (patch) | |
tree | d8edbe0b291c2771dd3cf0c52fb088d303a03d2c /src/code_8057824_1.c | |
parent | 18726d97cfe82c38a4809ca1fb4fd4aeda7a7ee1 (diff) |
Decomped entityExists() (#64)
Diffstat (limited to 'src/code_8057824_1.c')
-rw-r--r-- | src/code_8057824_1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code_8057824_1.c b/src/code_8057824_1.c index ec518d7..3426921 100644 --- a/src/code_8057824_1.c +++ b/src/code_8057824_1.c @@ -313,7 +313,7 @@ void sub_808919C(); void sub_8088D30(void); extern void sub_8083F14(); -extern u8 sub_80450E0(struct DungeonEntity *); +extern u8 entityExists(struct DungeonEntity *); extern u8 sub_8086AE4(u32); @@ -1985,7 +1985,7 @@ void sub_8089788(struct DungeonEntity *param_1, u8 param_2, s32 param_3) for(iVar3 = 0; iVar3 < 0x10; iVar3++) { iVar2 = gDungeonGlobalData->wildPokemon[iVar3]; - if ((sub_80450E0(iVar2) != '\0') && (iVar2 != param_1) && (iVar2->entityData->clientFlags == param_2)) { + if ((entityExists(iVar2) != '\0') && (iVar2 != param_1) && (iVar2->entityData->clientFlags == param_2)) { return; } } |