gt: don't write out of bounds (nw)

This commit is contained in:
Olivier Galibert 2018-05-16 07:31:47 +02:00
parent 4ce27b8305
commit 850ac95af1

View File

@ -1429,6 +1429,7 @@ void gt_device_base::write_vram(const gt_t &gt, const offs_t offset, const u8 da
buffer_write(gt, offset >> 2, data << shift_amount, 0xff << shift_amount);
}
else
gt.buffer[offset] = data;
else {
gt.buffer[offset & GT_BUFFER_MASK] = data;
}
}