diff options
author | Thomas Fach-Pedersen | 2016-10-24 21:26:24 +0200 |
---|---|---|
committer | Thomas Fach-Pedersen | 2016-10-24 21:26:28 +0200 |
commit | 94b1528d49de2557885838b8495d22a547104957 (patch) | |
tree | bfed281276940ff15dd3b74c727ff8cc7ad1af49 /engines/bladerunner | |
parent | 125f69999751210f912a25c509191114c7381c60 (diff) | |
download | scummvm-rg350-94b1528d49de2557885838b8495d22a547104957.tar.gz scummvm-rg350-94b1528d49de2557885838b8495d22a547104957.tar.bz2 scummvm-rg350-94b1528d49de2557885838b8495d22a547104957.zip |
BLADERUNNER: Fix null pointer dereference (Actually CID 1364205)
Previous fix for CID 1364205 was actually for CID 1364306.
Diffstat (limited to 'engines/bladerunner')
-rw-r--r-- | engines/bladerunner/set_effects.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/bladerunner/set_effects.cpp b/engines/bladerunner/set_effects.cpp index f0a0ed5bd0..c5769e3e60 100644 --- a/engines/bladerunner/set_effects.cpp +++ b/engines/bladerunner/set_effects.cpp @@ -69,10 +69,11 @@ void SetEffects::read(Common::ReadStream *stream, int framesCount) { } if (!fog) { //TODO exception, unknown fog type + } else { + fog->read(stream, framesCount); + fog->_next = _fogs; + _fogs = fog; } - fog->read(stream, framesCount); - fog->_next = _fogs; - _fogs = fog; } } |