Skip to content

Commit 060655e

Browse files
committed
Engine: fix Game.PlayVoiceClip() not supporting "narrator"
1 parent 7844d81 commit 060655e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/ac/global_audio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ extern ScriptAudioChannel scrAudioChannel[MAX_GAME_CHANNELS];
448448

449449
ScriptAudioChannel *PlayVoiceClip(CharacterInfo *ch, int sndid, bool as_speech)
450450
{
451-
if (!play_voice_nonblocking(ch->index_id, sndid, as_speech))
451+
if (!play_voice_nonblocking(ch ? ch->index_id : -1 /* narrator */, sndid, as_speech))
452452
return NULL;
453453
return &scrAudioChannel[SCHAN_SPEECH];
454454
}

0 commit comments

Comments
 (0)