[Scummvm-git-logs] scummvm master -> c72fe93cfdb3af8f951ffa61a2112691983643f7

bluegr noreply at scummvm.org
Tue Jan 7 06:59:30 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c72fe93cfd SCUMM: Fix typo in check


Commit: c72fe93cfdb3af8f951ffa61a2112691983643f7
    https://github.com/scummvm/scummvm/commit/c72fe93cfdb3af8f951ffa61a2112691983643f7
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2025-01-07T08:59:07+02:00

Commit Message:
SCUMM: Fix typo in check

Changed paths:
    engines/scumm/soundse.cpp


diff --git a/engines/scumm/soundse.cpp b/engines/scumm/soundse.cpp
index 644259317e3..ffa380adfe2 100644
--- a/engines/scumm/soundse.cpp
+++ b/engines/scumm/soundse.cpp
@@ -801,7 +801,7 @@ int32 SoundSE::handleRemasteredSpeech(const char *msgString, const char *speechF
 		numWaits
 	);
 
-	if (entryIndex > 0 && entryIndex <= _audioEntriesMI.size()) {
+	if (entryIndex >= 0 && entryIndex < _audioEntriesMI.size()) {
 		const AudioEntryMI *entry = &_audioEntriesMI[entryIndex];
 		//debug("Selected entry: %s (%s)", entry->textEnglish.c_str(), entry->speechFile.c_str());
 		return _nameToIndex[entry->speechFile];




More information about the Scummvm-git-logs mailing list