aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasb2m10 <asb2m10@gmail.com>2021-02-20 21:54:29 -0500
committerasb2m10 <asb2m10@gmail.com>2021-02-20 21:54:29 -0500
commit8b899007c966b335e80e31a98969315059eb363b (patch)
tree1dd5fd95baa9943d57581345e7f9371a98406511
parent8b2f5ac6ec8c334290b5ef40852a150d6b842080 (diff)
downloaddexed-8b899007c966b335e80e31a98969315059eb363b.tar.gz
Fix #271 for parameter range.
-rw-r--r--Source/msfa/controllers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/msfa/controllers.h b/Source/msfa/controllers.h
index 8c0c286..99de232 100644
--- a/Source/msfa/controllers.h
+++ b/Source/msfa/controllers.h
@@ -51,7 +51,7 @@ struct FmMod {
int r = 0, p = 0, a = 0, e = 0;
sscanf(cfg, "%d %d %d %d", &r, &p, &a, &e);
- range = r < 0 && r > 127 ? 0 : r;
+ range = r < 0 || r > 127 ? 0 : r;
pitch = p != 0;
amp = a != 0;
eg = e != 0;
Un proyecto texto-plano.xyz