aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/null.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-11-28 12:51:46 +0100
committerSven Gothel <[email protected]>2023-11-28 12:51:46 +0100
commit1aaf4f070011490bcece50394b9b32dfa593fd9e (patch)
tree17d68284e401a35eea3d3a574d986d446a60763a /al/effects/null.cpp
parent6e7cee4fa9a8af03f28ca26cd89f8357390dfc90 (diff)
parent571b546f35eead77ce109f8d4dd6c3de3199d573 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'al/effects/null.cpp')
-rw-r--r--al/effects/null.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/al/effects/null.cpp b/al/effects/null.cpp
index 0bbc183a..1e8787e7 100644
--- a/al/effects/null.cpp
+++ b/al/effects/null.cpp
@@ -120,7 +120,7 @@ template<>
template<>
bool NullCommitter::commit(const EaxEffectProps &props)
{
- const bool ret{props.mType != mEaxProps.mType};
+ const bool ret{props != mEaxProps};
mEaxProps = props;
return ret;
}
@@ -128,8 +128,7 @@ bool NullCommitter::commit(const EaxEffectProps &props)
template<>
void NullCommitter::SetDefaults(EaxEffectProps &props)
{
- props = EaxEffectProps{};
- props.mType = EaxEffectType::None;
+ props.emplace<std::monostate>();
}
template<>