diff options
| -rw-r--r-- | engines/toon/toon.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 99932362af..657e18635f 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -4666,11 +4666,11 @@ void ToonEngine::addDirtyRect( int32 left, int32 top, int32 right, int32 bottom  	top = MIN<int32>(MAX<int32>(top, 0), TOON_BACKBUFFER_HEIGHT);  	bottom = MIN<int32>(MAX<int32>(bottom, 0), TOON_BACKBUFFER_HEIGHT); -	Common::Rect rect(left, top, right, bottom); -  	if (bottom - top <= 0 || right - left <= 0)  		return; +	Common::Rect rect(left, top, right, bottom); +  	for (uint32 i = 0; i < _dirtyRects.size(); i++) {  		if (_dirtyRects[i].contains(rect))  			return;  | 
