diff options
author | Chris Robinson <[email protected]> | 2022-06-18 15:58:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-06-18 15:58:21 -0700 |
commit | ef8c7379ea717ffcd2447814624e64d610a3d82a (patch) | |
tree | eca7253446175ccbc5d99c9c73d193a8797322b8 /al/source.cpp | |
parent | dbce626905023e1dfb86fc5e333bec0a0e4065ff (diff) |
Avoid changing the EAX version on failure
Diffstat (limited to 'al/source.cpp')
-rw-r--r-- | al/source.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/al/source.cpp b/al/source.cpp index ff0f5d4c..6b8baa8e 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -4473,9 +4473,6 @@ void ALsource::eax5_set(const EaxCall& call, Eax5Props& props) void ALsource::eax_set(const EaxCall& call) { const auto eax_version = call.get_version(); - eax_is_version_changed_ |= (eax_version_ == eax_version); - eax_version_ = eax_version; - switch(eax_version) { case 1: eax1_set(call, eax1_.d); break; @@ -4485,6 +4482,8 @@ void ALsource::eax_set(const EaxCall& call) case 5: eax5_set(call, eax5_.d); eax5_.changed = true; break; default: eax_fail_unknown_property_id(); } + eax_is_version_changed_ |= (eax_version_ == eax_version); + eax_version_ = eax_version; } void ALsource::eax1_get(const EaxCall& call, const Eax1Props& props) |