mirror of
https://github.com/holub/mame
synced 2025-05-29 09:03:08 +03:00
gt: don't write out of bounds (nw)
This commit is contained in:
parent
4ce27b8305
commit
850ac95af1
@ -1429,6 +1429,7 @@ void gt_device_base::write_vram(const gt_t >, 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user