[Scummvm-cvs-logs] SF.net SVN: scummvm:[53465] scummvm/trunk/engines/teenagent/animation.cpp

megath at users.sourceforge.net megath at users.sourceforge.net
Fri Oct 15 07:50:19 CEST 2010


Revision: 53465
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53465&view=rev
Author:   megath
Date:     2010-10-15 05:50:19 +0000 (Fri, 15 Oct 2010)

Log Message:
-----------
Bug #3087858: fixed null pointer dereferencing

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/animation.cpp

Modified: scummvm/trunk/engines/teenagent/animation.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/animation.cpp	2010-10-15 04:37:44 UTC (rev 53464)
+++ scummvm/trunk/engines/teenagent/animation.cpp	2010-10-15 05:50:19 UTC (rev 53465)
@@ -112,7 +112,7 @@
 	//fixme: do not reload the same animation each time
 	free();
 
-	if (s == NULL && s->size() <= 1) {
+	if (s == NULL || s->size() <= 1) {
 		debug(1, "empty animation");
 		return;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list