diff options
author | Peter Kohaut | 2016-10-28 22:34:04 +0200 |
---|---|---|
committer | Peter Kohaut | 2016-10-28 22:34:04 +0200 |
commit | 1b40c5bf55c24a090632765335d871c198004120 (patch) | |
tree | c8b40484c403a2192b6fddda343df896f8ab732d /engines/bladerunner/set_effects.cpp | |
parent | ebf173b9ce4305a373c0e24171ed7dec51093c5e (diff) | |
download | scummvm-rg350-1b40c5bf55c24a090632765335d871c198004120.tar.gz scummvm-rg350-1b40c5bf55c24a090632765335d871c198004120.tar.bz2 scummvm-rg350-1b40c5bf55c24a090632765335d871c198004120.zip |
BLADERUNNER: fixed memory leaks & overflows
fixed few memory leaks
fixed overflows
prepared more logic for looping but its not yet working correctly - still figuring out original code for vqadecoder
Diffstat (limited to 'engines/bladerunner/set_effects.cpp')
-rw-r--r-- | engines/bladerunner/set_effects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/set_effects.cpp b/engines/bladerunner/set_effects.cpp index 54894e2a1c..c4038f6726 100644 --- a/engines/bladerunner/set_effects.cpp +++ b/engines/bladerunner/set_effects.cpp @@ -38,7 +38,7 @@ SetEffects::SetEffects(BladeRunnerEngine *vm) { _fadeDensity = 0.0f; _fogsCount = 0; - _fogs = NULL; + _fogs = nullptr; } SetEffects::~SetEffects() { @@ -55,7 +55,7 @@ void SetEffects::read(Common::ReadStream *stream, int framesCount) { int i; for (i = 0; i < _fogsCount; i++) { int type = stream->readUint32LE(); - Fog *fog = NULL; + Fog *fog = nullptr; switch (type) { case 0: fog = new FogCone(); |