[Scummvm-cvs-logs] SF.net SVN: scummvm: [22119] scummvm/trunk/engines/scumm/sound.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Apr 23 14:59:00 CEST 2006


Revision: 22119
Author:   fingolfin
Date:     2006-04-23 14:58:01 -0700 (Sun, 23 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22119&view=rev

Log Message:
-----------
Fix access to .he2 in Sound::openSfxFile, too

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/sound.cpp
Modified: scummvm/trunk/engines/scumm/sound.cpp
===================================================================
--- scummvm/trunk/engines/scumm/sound.cpp	2006-04-23 21:56:09 UTC (rev 22118)
+++ scummvm/trunk/engines/scumm/sound.cpp	2006-04-23 21:58:01 UTC (rev 22119)
@@ -941,7 +941,7 @@
 
 	if (!file->isOpen()) {
 		if ((_vm->_game.heversion <= 61 && _vm->_game.platform == Common::kPlatformMacintosh) || (_vm->_game.heversion >= 70)) {
-			strncpy(buf, _vm->generateFilename(2).c_str(), sizeof(buf));
+			strncpy(buf, _vm->generateFilename(-2).c_str(), sizeof(buf));
 		} else {
 			sprintf(buf, "%s.tlk", _vm->_filenamePattern.pattern);
 		}


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