aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/engine')
-rw-r--r--engines/kyra/engine/kyra_hof.cpp4
-rw-r--r--engines/kyra/engine/kyra_hof.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/engine/kyra_hof.cpp b/engines/kyra/engine/kyra_hof.cpp
index bc09be038c..2e5d091bf9 100644
--- a/engines/kyra/engine/kyra_hof.cpp
+++ b/engines/kyra/engine/kyra_hof.cpp
@@ -1460,8 +1460,8 @@ void KyraEngine_HoF::snd_playSoundEffect(int track, int volume) {
if (track == -1)
return;
- int16 prio = (int16)READ_LE_UINT16(&_ingameSoundIndex[track * 2 + 1]);
- int16 file = (int16)READ_LE_UINT16(&_ingameSoundIndex[track * 2]);
+ int16 prio = READ_LE_INT16(&_ingameSoundIndex[track * 2 + 1]);
+ int16 file = READ_LE_INT16(&_ingameSoundIndex[track * 2]);
prio = prio <= 0 ? -prio : (prio * volume) >> 8;
if (file != -1 && _sound->useDigitalSfx()) {
diff --git a/engines/kyra/engine/kyra_hof.h b/engines/kyra/engine/kyra_hof.h
index 27638132bb..04ee2b6ac7 100644
--- a/engines/kyra/engine/kyra_hof.h
+++ b/engines/kyra/engine/kyra_hof.h
@@ -642,7 +642,7 @@ protected:
int _cdaTrackTableFinaleSize;
const char *const *_ingameSoundList;
int _ingameSoundListSize;
- const uint16 *_ingameSoundIndex;
+ const int16 *_ingameSoundIndex;
int _ingameSoundIndexSize;
const uint16 *_ingameTalkObjIndex;
int _ingameTalkObjIndexSize;