mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 15:48:48 +00:00
VOYEUR: Further fading memory access bugfixes
This commit is contained in:
parent
1a2f6fe6f3
commit
b135ce3d28
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user