Skip to content

Commit

Permalink
AGS: Fix formatting of debug message
Browse files Browse the repository at this point in the history
About bad index of audio channel
  • Loading branch information
antoniou79 committed Mar 23, 2023
1 parent 0a90e42 commit 10a5566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/ags/engine/ac/system.cpp
Expand Up @@ -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];
}
Expand Down

0 comments on commit 10a5566

Please sign in to comment.