From 1a2f6fe6f36a30d9dc6e6c4dcf48b448983a31b3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 17 Jun 2013 22:45:59 -0400 Subject: VOYEUR: Fix memory overrun in fading code --- engines/voyeur/events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index 7f8f55f9aa..22b70b435c 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -252,7 +252,7 @@ void EventsManager::startFade(CMapResource *cMap) { int mapIndex = 0; for (int idx = _fadeFirstCol; idx <= _fadeLastCol; ++idx, vgaP += 3) { - Common::copy(&cMap->_entries[mapIndex], &cMap->_entries[mapIndex + 3], vgaP); + Common::copy(&cMap->_entries[mapIndex], &cMap->_entries[mapIndex + 2], vgaP); if (!(cMap->_fadeStatus & 1)) mapIndex += 3; -- cgit v1.2.3