Fix AudioMutex constructor in standalone builds

This commit is contained in:
刘皓 2025-04-29 13:53:56 -04:00
parent 414d78a327
commit 3b017e7bb4
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -46,7 +46,7 @@ AudioMutex::AudioMutex()
#ifdef MKXPZ_RETRO
if (mkxp_mutex_init(&mutex, false))
#else
if (mutex == NULL)
if ((mutex = SDL_CreateMutex()) == NULL)
#endif // MKXPZ_RETRO
{
std::abort();