aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/cryolib.cpp
diff options
context:
space:
mode:
authorStrangerke2016-11-16 14:42:19 -0800
committerEugene Sandulenko2017-01-25 22:42:07 +0100
commitc62b719118c215c0198a2dda46746d922c6a37e1 (patch)
tree2574ec9639135c6fa7c8efae00955d30d81264ee /engines/cryo/cryolib.cpp
parent1b34a02db7c17131a6f6d0004df1dec00c0ed8d9 (diff)
downloadscummvm-rg350-c62b719118c215c0198a2dda46746d922c6a37e1.tar.gz
scummvm-rg350-c62b719118c215c0198a2dda46746d922c6a37e1.tar.bz2
scummvm-rg350-c62b719118c215c0198a2dda46746d922c6a37e1.zip
CRYO: Some more renaming and reducing of scope
Diffstat (limited to 'engines/cryo/cryolib.cpp')
-rw-r--r--engines/cryo/cryolib.cpp5
1 files changed, 2 insertions, 3 deletions
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;