aboutsummaryrefslogtreecommitdiffstats
path: root/al/effects/null.cpp
diff options
context:
space:
mode:
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<>