[Scummvm-cvs-logs] SF.net SVN: scummvm:[35099] scummvm/trunk/engines/kyra/sound_towns.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Nov 16 21:46:18 CET 2008


Revision: 35099
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35099&view=rev
Author:   lordhoto
Date:     2008-11-16 20:46:18 +0000 (Sun, 16 Nov 2008)

Log Message:
-----------
Fixed valgrind warning.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/sound_towns.cpp

Modified: scummvm/trunk/engines/kyra/sound_towns.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_towns.cpp	2008-11-16 20:34:31 UTC (rev 35098)
+++ scummvm/trunk/engines/kyra/sound_towns.cpp	2008-11-16 20:46:18 UTC (rev 35099)
@@ -2556,9 +2556,9 @@
 TownsPC98_OpnSquareSineSource::TownsPC98_OpnSquareSineSource(const uint32 timerbase) : 	_tlTable(0),
 	_tleTable(0), _updateRequest(-1), _tickLength(timerbase * 27), _ready(0), _reg(0), _rand(1), _outN(1),
 	_nTick(0), _evpUpdateCnt(0), _evpTimer(0x1f), _pReslt(0x1f), _attack(0), _cont(false), _evpUpdate(true),
-	_timer(0), _noiseGenerator(0) {
+	_timer(0), _noiseGenerator(0), _chanEnable(0) {
 
-	memset(_channels, 0, sizeof(Channel) * 3);	
+	memset(_channels, 0, sizeof(_channels));
 	_reg = new uint8 *[11];
 
 	_reg[0] = &_channels[0].frqL;


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