VOYEUR: Further fading memory access bugfixes

This commit is contained in:
Paul Gilbert 2013-06-17 22:59:26 -04:00
parent 1a2f6fe6f3
commit b135ce3d28
2 changed files with 2 additions and 2 deletions

View File

@ -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 + 2], vgaP);
Common::copy(&cMap->_entries[mapIndex], &cMap->_entries[mapIndex + 3], vgaP);
if (!(cMap->_fadeStatus & 1))
mapIndex += 3;

View File

@ -1179,7 +1179,7 @@ CMapResource::CMapResource(BoltFilesState &state, const byte *src): _vm(state._v
_start = READ_LE_UINT16(src + 2);
_end = READ_LE_UINT16(src + 4);
int count = _end - _start;
int count = _end - _start + 1;
_entries = new byte[count * 3];
Common::copy(src + 6, src + 6 + 3 * count, _entries);