diff options
author | Chris Robinson <[email protected]> | 2022-02-14 00:20:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-14 00:20:45 -0800 |
commit | c156e30a484eeaa341b42520904cef7b0eefc7c9 (patch) | |
tree | fdab94bf76578f23ef4af48151b8eb9945d45dac /al/source.cpp | |
parent | f915b86dbb8a3d75e37a2813df093694aae0dcbb (diff) |
Derive EaxFxSlotIndex from an optional
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |