mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +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);
|
buffer_write(gt, offset >> 2, data << shift_amount, 0xff << shift_amount);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
gt.buffer[offset] = data;
|
gt.buffer[offset & GT_BUFFER_MASK] = data;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user