[Scummvm-cvs-logs] scummvm master -> 701f7d5707f0415a4469eba4d2f30cb2daf7e570

Strangerke Strangerke at scummvm.org
Sat Jun 7 09:50:01 CEST 2014


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:
701f7d5707 TEENAGENT: Remove dead code: s cannot be null at this point


Commit: 701f7d5707f0415a4469eba4d2f30cb2daf7e570
    https://github.com/scummvm/scummvm/commit/701f7d5707f0415a4469eba4d2f30cb2daf7e570
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-06-07T09:48:53+02:00

Commit Message:
TEENAGENT: Remove dead code: s cannot be null at this point

Changed paths:
    engines/teenagent/actor.cpp



diff --git a/engines/teenagent/actor.cpp b/engines/teenagent/actor.cpp
index a4df43a..5c796c1 100644
--- a/engines/teenagent/actor.cpp
+++ b/engines/teenagent/actor.cpp
@@ -134,10 +134,6 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
 	default:
 		return Common::Rect();
 	}
-	if (s == NULL) {
-		warning("no surface, skipping");
-		return Common::Rect();
-	}
 
 	Common::Rect dirty;
 	Common::Rect clip(0, 0, s->w, s->h);






More information about the Scummvm-git-logs mailing list