init dynos levels in DynOS_Level_GetCollision

This commit is contained in:
Isaac0-dev 2024-11-30 09:12:47 +10:00
parent 97439fa557
commit 2bfd9bc5f6

View file

@ -250,6 +250,7 @@ bool DynOS_Level_IsVanillaLevel(s32 aLevel) {
Collision *DynOS_Level_GetCollision(u32 aLevel, u16 aArea) {
if (aLevel >= LEVEL_COUNT) return NULL;
if (aArea >= MAX_AREAS) return NULL;
DynOS_Level_Init();
return sDynosLevelCollision[aLevel][aArea];
}