AGS: Fix formatting of debug message

About bad index of audio channel
This commit is contained in:
antoniou79 2023-03-23 13:53:04 +02:00
parent 0a90e4227c
commit 10a5566dab

View File

@ -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];
}