aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorPaul Gilbert2013-06-17 22:45:59 -0400
committerPaul Gilbert2013-06-17 22:45:59 -0400
commit1a2f6fe6f36a30d9dc6e6c4dcf48b448983a31b3 (patch)
tree9a47a49c01cf07140620e3d14f704dc990d80d8f /engines/voyeur
parentef902493c4ba9f63a184ba25dbd8f608deabfcd5 (diff)
downloadscummvm-rg350-1a2f6fe6f36a30d9dc6e6c4dcf48b448983a31b3.tar.gz
scummvm-rg350-1a2f6fe6f36a30d9dc6e6c4dcf48b448983a31b3.tar.bz2
scummvm-rg350-1a2f6fe6f36a30d9dc6e6c4dcf48b448983a31b3.zip
VOYEUR: Fix memory overrun in fading code
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/events.cpp2
1 files changed, 1 insertions, 1 deletions
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;