diff options
Diffstat (limited to 'engines/agos/sound.cpp')
-rw-r--r-- | engines/agos/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp index 11a1cd792e..dd3cc74367 100644 --- a/engines/agos/sound.cpp +++ b/engines/agos/sound.cpp @@ -799,12 +799,12 @@ void Sound::switchVoiceFile(const GameSpecificSettings *gss, uint disc) { Common::File *file = new Common::File(); if (!_hasVoiceFile) { - sprintf(filename, "%s%d", gss->speech_filename, disc); + sprintf(filename, "%s%u", gss->speech_filename, disc); _voice = makeCompressedSound(_mixer, file, filename); _hasVoiceFile = (_voice != 0); } if (!_hasVoiceFile) { - sprintf(filename, "%s%d.wav", gss->speech_filename, disc); + sprintf(filename, "%s%u.wav", gss->speech_filename, disc); file->open(filename); if (file->isOpen() == false) { error("switchVoiceFile: Can't load voice file %s", filename); |