Fix UB in amgr_create

This commit is contained in:
Ryan Dwyer
2025-07-14 19:41:42 +08:00
parent c5f87b4c90
commit 150aa23258
+4 -4
View File
@@ -92,11 +92,11 @@ void amgrCreate(ALSynConfig *config)
config->params[i] = (s32 *) sp068;
}
}
}
n_alInit(&g_AudioManager.g, config);
func00030bfc(0, 60);
osCreateThread(&g_AudioManager.thread, THREAD_AUDIO, &amgrMain, 0, g_AudioSp, THREADPRI_AUDIO);
n_alInit(&g_AudioManager.g, config);
func00030bfc(0, 60);
osCreateThread(&g_AudioManager.thread, THREAD_AUDIO, &amgrMain, 0, g_AudioSp, THREADPRI_AUDIO);
}
}
s8 g_AudioIsThreadRunning = false;