diff --git a/config/symbols.pspeu.dra.txt b/config/symbols.pspeu.dra.txt index 17887da581..203b0f0123 100644 --- a/config/symbols.pspeu.dra.txt +++ b/config/symbols.pspeu.dra.txt @@ -6,6 +6,7 @@ func_800EA5E4 = 0x090DFD70; func_800EA720 = 0x090DFED8; func_800EAD0C = 0x090E0870; func_800EAD7C = 0x090E08D8; +DestroyPrimitive = 0x090E0C30; func_800EDB08 = 0x090E0CF0; func_800EDB58 = 0x090E0D68; AllocPrimitives = 0x090E0E30; diff --git a/src/dra_psp/33F0.c b/src/dra_psp/33F0.c index 480e99820c..efe8bb5a8a 100644 --- a/src/dra_psp/33F0.c +++ b/src/dra_psp/33F0.c @@ -136,8 +136,15 @@ void func_800EAD7C(void) { } } -INCLUDE_ASM("dra_psp/psp/dra_psp/33F0", func_psp_090E0C30); +static void DestroyPrimitive(Primitive* prim) { + s32 i; + s32 n; + u32* primData = (u32*)prim; + for (n = sizeof(Primitive) / sizeof(*primData), i = 0; i < n; i++) { + *primData++ = 0; + } +} INCLUDE_ASM("dra_psp/psp/dra_psp/33F0", func_psp_090E0C68); INCLUDE_ASM("dra_psp/psp/dra_psp/33F0", func_psp_090E0CA8);