[Scummvm-cvs-logs] SF.net SVN: scummvm: [31563] scummvm/trunk/engines/kyra/kyra_v3.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Fri Apr 18 21:33:07 CEST 2008
Revision: 31563
http://scummvm.svn.sourceforge.net/scummvm/?rev=31563&view=rev
Author: eriktorbjorn
Date: 2008-04-18 12:33:06 -0700 (Fri, 18 Apr 2008)
Log Message:
-----------
Fixed a Valgrind warning. I hope this is what the function was intended to do.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/kyra_v3.cpp
Modified: scummvm/trunk/engines/kyra/kyra_v3.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra_v3.cpp 2008-04-18 19:14:44 UTC (rev 31562)
+++ scummvm/trunk/engines/kyra/kyra_v3.cpp 2008-04-18 19:33:06 UTC (rev 31563)
@@ -624,9 +624,10 @@
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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list