[Scummvm-git-logs] scummvm master -> 10a5566dab986315037da8da2fbf968901f7bee9
antoniou79
noreply at scummvm.org
Thu Mar 23 11:53:47 UTC 2023
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:
10a5566dab AGS: Fix formatting of debug message
Commit: 10a5566dab986315037da8da2fbf968901f7bee9
https://github.com/scummvm/scummvm/commit/10a5566dab986315037da8da2fbf968901f7bee9
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2023-03-23T13:53:04+02:00
Commit Message:
AGS: Fix formatting of debug message
About bad index of audio channel
Changed paths:
engines/ags/engine/ac/system.cpp
diff --git a/engines/ags/engine/ac/system.cpp b/engines/ags/engine/ac/system.cpp
index 409dd365125..1a99e946780 100644
--- a/engines/ags/engine/ac/system.cpp
+++ b/engines/ags/engine/ac/system.cpp
@@ -168,7 +168,7 @@ int System_GetAudioChannelCount() {
ScriptAudioChannel *System_GetAudioChannels(int index) {
if ((index < 0) || (index >= _GP(game).numGameChannels))
quitprintf("!System.AudioChannels: invalid sound channel index %d, supported %d - %d",
- 0, _GP(game).numGameChannels);
+ index, 0, _GP(game).numGameChannels - 1);
return &_G(scrAudioChannel)[index];
}
More information about the Scummvm-git-logs
mailing list