From 5ce525efc75a97d1391b46cca4def41a13ff1619 Mon Sep 17 00:00:00 2001 From: Evghenii Date: Tue, 28 Nov 2023 22:20:11 -0500 Subject: [PATCH] Fix second VectorReader constructor --- source/zmusic/fileio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/zmusic/fileio.h b/source/zmusic/fileio.h index 784da49..f2ea1b7 100644 --- a/source/zmusic/fileio.h +++ b/source/zmusic/fileio.h @@ -221,6 +221,9 @@ struct VectorReader : public MemoryReader { mVector.resize(size); memcpy(mVector.data(), data, size); + mData = mVector.data(); + mLength = (long)size; + mPos = 0; } };