Fix sub_800F204 call

This commit is contained in:
DizzyEggg 2025-05-29 13:29:14 +02:00
parent 79ae94e504
commit b14e15f69b
2 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,7 @@
#include "structs/axdata.h"
#include "structs/sprite_oam.h"
#include "structs/str_position.h"
#include "structs/str_file_system.h"
struct unkStruct_203B0CC_sub
{
@ -29,7 +30,7 @@ struct unkStruct_203B0CC_sub
u8 fill55[0x58 - 0x55];
axObject unk58;
u8 fillA4[0xB8 - 0xA4];
u32 unkB8;
OpenedFile *unkB8;
u8 fillBC[0xCC - 0xBC];
s16 unkCC[2]; // NOTE: might be DungeonPos
};

View File

@ -23,7 +23,7 @@ struct unkStruct_800F18C
extern s32 sub_800E2C0(u32);
extern u32 sub_800E900(void);
extern void sub_8009BE4(void);
extern void sub_800F204(void);
extern void sub_800F204(OpenedFile *file);
extern struct unkStruct_800F18C *sub_800F18C(s32);
extern void sub_800DCA8(struct unkStruct_203B0CC_sub *);
@ -168,10 +168,10 @@ void sub_800DCA8(struct unkStruct_203B0CC_sub *param_1)
{
param_1->unk4 = -1;
param_1->unk54 = 0;
if(param_1->unkB8 != 0)
if(param_1->unkB8 != NULL)
{
sub_800F204();
param_1->unkB8 = 0;
sub_800F204(param_1->unkB8);
param_1->unkB8 = NULL;
}
}