From c156e30a484eeaa341b42520904cef7b0eefc7c9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 14 Feb 2022 00:20:45 -0800 Subject: Derive EaxFxSlotIndex from an optional --- al/source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'al/source.cpp') diff --git a/al/source.cpp b/al/source.cpp index f012005a..9e3f715e 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -4058,7 +4058,7 @@ void ALsource::eax_update_primary_fx_slot_id() if (previous_primary_fx_slot_index.has_value()) { - const auto fx_slot_index = previous_primary_fx_slot_index.get(); + const auto fx_slot_index = previous_primary_fx_slot_index.value(); eax_active_fx_slots_[fx_slot_index] = false; eax_set_al_source_send(nullptr, fx_slot_index, EaxAlLowPassParam{1.0f, 1.0f}); @@ -4066,7 +4066,7 @@ void ALsource::eax_update_primary_fx_slot_id() if (primary_fx_slot_index.has_value()) { - const auto fx_slot_index = primary_fx_slot_index.get(); + const auto fx_slot_index = primary_fx_slot_index.value(); eax_active_fx_slots_[fx_slot_index] = true; auto& fx_slot = eax_al_context_->eax_get_fx_slot(fx_slot_index); -- cgit v1.2.3