From c62b719118c215c0198a2dda46746d922c6a37e1 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 16 Nov 2016 14:42:19 -0800 Subject: CRYO: Some more renaming and reducing of scope --- engines/cryo/cryolib.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/cryo/cryolib.cpp') diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp index 5216cd1308..ff4a603bc4 100644 --- a/engines/cryo/cryolib.cpp +++ b/engines/cryo/cryolib.cpp @@ -380,15 +380,14 @@ void CLSound_SetLength(sound_t *sound, int length) { ///// CLSoundChannel /// sound output device that plays queue of sounds soundchannel_t *CLSoundChannel_New(int arg1) { - int16 i; soundchannel_t *ch = (soundchannel_t *)malloc(sizeof(*ch)); if (!ch) - return 0; + return nullptr; ch->_volumeLeft = ch->_volumeRight = 255; ch->_numSounds = 0; - for (i = 0; i < kCryoMaxChSounds; i++) + for (int16 i = 0; i < kCryoMaxChSounds; i++) ch->_sounds[i] = 0; return ch; -- cgit v1.2.3