aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/kyra_v3.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/kyra_v3.cpp b/engines/kyra/kyra_v3.cpp
index ac90368004..4ccefdc4c9 100644
--- a/engines/kyra/kyra_v3.cpp
+++ b/engines/kyra/kyra_v3.cpp
@@ -624,9 +624,10 @@ void KyraEngine_v3::openTalkFile(int file) {
if (file == 0) {
strcpy(talkFilename, "ANYTALK.TLK");
} else {
- if (_currentTalkFile > 0)
+ if (_currentTalkFile > 0) {
sprintf(talkFilename, "CH%dTALK.TLK", _currentTalkFile);
- _res->unloadPakFile(talkFilename);
+ _res->unloadPakFile(talkFilename);
+ }
sprintf(talkFilename, "CH%dTALK.TLK", file);
}