diff options
| author | Max Horn | 2009-04-11 00:30:11 +0000 | 
|---|---|---|
| committer | Max Horn | 2009-04-11 00:30:11 +0000 | 
| commit | 64fc4253e8df69f7539809f8eabba20e1ca029db (patch) | |
| tree | b655051e91a54a4cbc3ce1077bc2d271ac213756 | |
| parent | 1c5110e725e8d5bd2682727b5cbbc9d7b959b95f (diff) | |
| download | scummvm-rg350-64fc4253e8df69f7539809f8eabba20e1ca029db.tar.gz scummvm-rg350-64fc4253e8df69f7539809f8eabba20e1ca029db.tar.bz2 scummvm-rg350-64fc4253e8df69f7539809f8eabba20e1ca029db.zip | |
SAGA: Fix yet another mistake in the revised dirty rect code *sigh*
svn-id: r39923
| -rw-r--r-- | engines/saga/render.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/engines/saga/render.cpp b/engines/saga/render.cpp index fef1cb0905..105a854314 100644 --- a/engines/saga/render.cpp +++ b/engines/saga/render.cpp @@ -220,7 +220,7 @@ void Render::addDirtyRect(Common::Rect r) {  	// Check if the new rectangle is contained within another in the list  	Common::List<Common::Rect>::iterator it; -	for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) { +	for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ) {  		// If we find a rectangle which fully contains the new one,  		// we can abort the search.  		if (it->contains(r)) @@ -229,7 +229,7 @@ void Render::addDirtyRect(Common::Rect r) {  		// Conversely, if we find rectangles which are contained in  		// the new one, we can remove them  		if (r.contains(*it)) -			_dirtyRects.erase(it); +			it = _dirtyRects.erase(it);  		else  			++it;  	} | 
