mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Fix broken client if openal cannot be opened (#9804)
This commit is contained in:
@@ -1249,7 +1249,7 @@ bool Game::init(
|
||||
bool Game::initSound()
|
||||
{
|
||||
#if USE_SOUND
|
||||
if (g_settings->getBool("enable_sound")) {
|
||||
if (g_settings->getBool("enable_sound") && g_sound_manager_singleton.get()) {
|
||||
infostream << "Attempting to use OpenAL audio" << std::endl;
|
||||
sound = createOpenALSoundManager(g_sound_manager_singleton.get(), &soundfetcher);
|
||||
if (!sound)
|
||||
|
Reference in New Issue
Block a user