[Scummvm-git-logs] scummvm master -> b92ed30b5c58ac1e2cedea61f6ddbef937f56c10
athrxx
noreply at scummvm.org
Sat Apr 26 12:04:34 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
b92ed30b5c KYRA: fix previous commit
Commit: b92ed30b5c58ac1e2cedea61f6ddbef937f56c10
https://github.com/scummvm/scummvm/commit/b92ed30b5c58ac1e2cedea61f6ddbef937f56c10
Author: athrxx (athrxx at scummvm.org)
Date: 2025-04-26T14:04:20+02:00
Commit Message:
KYRA: fix previous commit
(for BE systems)
Changed paths:
engines/kyra/sound/sound_pc98_v2.cpp
diff --git a/engines/kyra/sound/sound_pc98_v2.cpp b/engines/kyra/sound/sound_pc98_v2.cpp
index fe5d4f5eb42..139ab92fc0b 100644
--- a/engines/kyra/sound/sound_pc98_v2.cpp
+++ b/engines/kyra/sound/sound_pc98_v2.cpp
@@ -123,8 +123,8 @@ void SoundTownsPC98_v2::playTrack(uint8 track) {
int trackNum = -1;
if (_vm->gameFlags().platform == Common::kPlatformFMTowns) {
for (uint i = 0; i < res()->cdaTableSize >> 1; i++) {
- if (track == (uint8)res()->cdaTable[i * 2]) {
- trackNum = (int8)res()->cdaTable[i * 2 + 1] - 1;
+ if (track == (uint8)READ_LE_UINT16(&res()->cdaTable[i * 2])) {
+ trackNum = (int8)READ_LE_UINT16(&res()->cdaTable[i * 2 + 1]) - 1;
break;
}
}
More information about the Scummvm-git-logs
mailing list