aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sfx/softseq/opl2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/sfx/softseq/opl2.cpp b/engines/sci/sfx/softseq/opl2.cpp
index eb94fcee97..9dc9bf387b 100644
--- a/engines/sci/sfx/softseq/opl2.cpp
+++ b/engines/sci/sfx/softseq/opl2.cpp
@@ -280,7 +280,7 @@ void synth_setnote(int voice, int note, int bend) {
if (bend < 8192)
bend = 8192 - bend;
- delta = pow(2, (float)(bend % 8192) / 8192.0);
+ delta = pow(2.0, (float)(bend % 8192) / 8192.0);
if (bend > 8192)
fre = (int)(ym3812_note[n] * delta);