summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/desktop/types/OverridableVar.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/types/OverridableVar.hpp b/src/desktop/types/OverridableVar.hpp
index cdf27b89..065da167 100644
--- a/src/desktop/types/OverridableVar.hpp
+++ b/src/desktop/types/OverridableVar.hpp
@@ -62,7 +62,7 @@ namespace Desktop::Types {
for (size_t i = 0; i < PRIORITY_END; ++i) {
if constexpr (Extended && !std::is_same_v<T, bool>)
m_values[i] = other.m_values[i].has_value() ? clampOptional(*other.m_values[i], m_minValue, m_maxValue) : other.m_values[i];
- else
+ else if (other.m_values[i].has_value())
m_values[i] = other.m_values[i];
}