mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
imd_dsk.cpp: Fix segmentation fault saving FM track
Incorrect cell size for FM track results in empty bitstream that ultimately causes data.empty() to seg fault.
This commit is contained in:
parent
946ad8b339
commit
9c227fe9cb
@ -661,7 +661,7 @@ bool imd_format::save(io_generic *io, const std::vector<uint32_t> &variants, flo
|
||||
|
||||
bool fm = m_mode[i]< 3;
|
||||
|
||||
auto bitstream = generate_bitstream_from_track(m_track[i]*m_trackmult, head, 2000, image);
|
||||
auto bitstream = generate_bitstream_from_track(m_track[i]*m_trackmult, head, fm ? 4000 : 2000, image);
|
||||
std::vector<std::vector<uint8_t>> sectors;
|
||||
|
||||
if (fm)
|
||||
|
Loading…
Reference in New Issue
Block a user