[Scummvm-git-logs] scummvm master -> 94b1528d49de2557885838b8495d22a547104957

madmoose thomas at fach-pedersen.net
Mon Oct 24 21:28:17 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
94b1528d49 BLADERUNNER: Fix null pointer dereference (Actually CID 1364205)


Commit: 94b1528d49de2557885838b8495d22a547104957
    https://github.com/scummvm/scummvm/commit/94b1528d49de2557885838b8495d22a547104957
Author: Thomas Fach-Pedersen (thomas at fach-pedersen.net)
Date: 2016-10-24T21:26:28+02:00

Commit Message:
BLADERUNNER: Fix null pointer dereference (Actually CID 1364205)

Previous fix for CID 1364205 was actually for CID 1364306.

Changed paths:
    engines/bladerunner/set_effects.cpp



diff --git a/engines/bladerunner/set_effects.cpp b/engines/bladerunner/set_effects.cpp
index f0a0ed5..c5769e3 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;
 	}
 }
 





More information about the Scummvm-git-logs mailing list