[Scummvm-git-logs] scummvm master -> f261cbabe3ff1b39bf045b3b93ea55cc458a4223

athrxx noreply at scummvm.org
Tue Nov 12 14:50:40 UTC 2024


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:
f261cbabe3 SCUMM: (FM-Towns) - fix possible invalid mem access


Commit: f261cbabe3ff1b39bf045b3b93ea55cc458a4223
    https://github.com/scummvm/scummvm/commit/f261cbabe3ff1b39bf045b3b93ea55cc458a4223
Author: athrxx (athrxx at scummvm.org)
Date: 2024-11-12T15:49:50+01:00

Commit Message:
SCUMM: (FM-Towns) - fix possible invalid mem access

Changed paths:
    engines/scumm/gfx_towns.cpp


diff --git a/engines/scumm/gfx_towns.cpp b/engines/scumm/gfx_towns.cpp
index 678b8796ebe..14bac620b03 100644
--- a/engines/scumm/gfx_towns.cpp
+++ b/engines/scumm/gfx_towns.cpp
@@ -544,7 +544,7 @@ void TownsScreen::addDirtyRect(int x, int y, int w, int h) {
 			if (r2 == _dirtyRects.end())
 				r2 = r;
 			else
-				_dirtyRects.erase(r);
+				r = _dirtyRects.erase(r);
 		}
 	}
 




More information about the Scummvm-git-logs mailing list