From 1608bf325d9f7b1bc8018570b3cd9d7125c7be68 Mon Sep 17 00:00:00 2001 From: tomcw Date: Sat, 9 Dec 2023 17:43:53 +0000 Subject: [PATCH] Fix assert --- source/Disk.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/Disk.cpp b/source/Disk.cpp index 14c36caf..e814820f 100644 --- a/source/Disk.cpp +++ b/source/Disk.cpp @@ -337,7 +337,10 @@ void Disk2InterfaceCard::ReadTrack(const int drive, ULONG uExecutedCycles) const UINT32 currentBitPosition = pFloppy->m_bitOffset; const UINT32 currentBitTrackLength = pFloppy->m_bitCount; - _ASSERT(currentBitPosition < currentBitTrackLength); + if (currentBitTrackLength) + { + _ASSERT(currentBitPosition < currentBitTrackLength); + } Extra extra(pFloppy->m_isFluxTrack, m_enhanceDisk);