summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/accel-base.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/accel-base.hpp b/common/accel-base.hpp
index 714162f..d536923 100644
--- a/common/accel-base.hpp
+++ b/common/accel-base.hpp
@@ -40,7 +40,7 @@ namespace rawaccel {
inline double operator()(double speed) const {
double offset_speed = speed - offset;
- return offset_speed > 0 ? ( legacy_offset ? 1 + fn.legacy_offset(offset_speed) * weight : 1 + fn(offset_speed) ) : 1;
+ return offset_speed > 0 ? ( legacy_offset ? 1 + fn.legacy_offset(offset_speed) * weight : 1 + fn(offset_speed) * weight) : 1;
}
};