fix warning

svn-id: r12498
This commit is contained in:
Paweł Kołodziejski 2004-01-18 20:11:52 +00:00
parent 4ff60e231d
commit ce3e6d7fd8
3 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ void AdlibChannel::stopNote(void) {
int32 AdlibChannel::getNextEventTime(void) {
int32 retV = 0;
uint8 cnt, lVal;
uint8 cnt, lVal = 0;
for (cnt = 0; cnt < 4; cnt++) {
lVal = _musicData[_channelData.eventDataPtr];
_channelData.eventDataPtr++;

View File

@ -65,7 +65,7 @@ void GmChannel::stopNote(void) {
int32 GmChannel::getNextEventTime(void) {
int32 retV = 0;
uint8 cnt, lVal;
uint8 cnt, lVal = 0;
for (cnt = 0; cnt < 4; cnt++) {
lVal = _musicData[_channelData.eventDataPtr];
_channelData.eventDataPtr++;

View File

@ -65,7 +65,7 @@ void Sword2Engine::buildMenu(void) {
bool icon_coloured;
uint8 *icon;
uint8 *head;
uint32 res;
uint32 res = 0;
// reset temp list which will be totally rebuilt
_totalTemp = 0;