diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index 6e2ba07646..8a06d9266e 100644 --- a/Source/Core/DiscIO/DiscScrubber.cpp +++ b/Source/Core/DiscIO/DiscScrubber.cpp @@ -13,6 +13,7 @@ #include #include +#include "Common/Align.h" #include "Common/CommonTypes.h" #include "Common/File.h" #include "Common/Logging/Log.h" @@ -124,7 +125,7 @@ u64 DiscScrubber::ToClusterOffset(u64 offset) const if (m_disc->IsEncryptedAndHashed()) return offset / 0x7c00 * CLUSTER_SIZE; else - return offset % CLUSTER_SIZE; + return Common::AlignDown(offset, CLUSTER_SIZE); } // Helper functions for reading the BE volume