diff options
author | Torbjörn Andersson | 2008-04-18 19:33:06 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-04-18 19:33:06 +0000 |
commit | 0dac6c8f85d1d1666171d4f59ab081f8f1bda1a9 (patch) | |
tree | 7be2ea32c4cbabad500515b133072980a1c01ad5 /engines/kyra | |
parent | 6a74374d36ab79b3d5e721acb65a322818557057 (diff) | |
download | scummvm-rg350-0dac6c8f85d1d1666171d4f59ab081f8f1bda1a9.tar.gz scummvm-rg350-0dac6c8f85d1d1666171d4f59ab081f8f1bda1a9.tar.bz2 scummvm-rg350-0dac6c8f85d1d1666171d4f59ab081f8f1bda1a9.zip |
Fixed a Valgrind warning. I hope this is what the function was intended to do.
svn-id: r31563
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/kyra_v3.cpp | 5 |
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); } |