Fix an error with the previous commit.

This commit is contained in:
David Reid
2021-12-16 19:46:07 +10:00
parent 409e575a08
commit 80ca8c838e
+3 -1
View File
@@ -70063,7 +70063,9 @@ MA_API ma_result ma_engine_init(const ma_engine_config* pConfig, ma_engine* pEng
*/
#if !defined(MA_NO_DEVICE_IO)
{
listenerConfig.pChannelMapOut = pEngine->pDevice->playback.channelMap;
if (pEngine->pDevice != NULL) {
listenerConfig.pChannelMapOut = pEngine->pDevice->playback.channelMap;
}
}
#endif