From d28b2769381e85bb5fbf185f4f3722346ea06ad0 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; } };