mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-30 07:31:01 +00:00
Fix second VectorReader constructor
This commit is contained in:
parent
26c889088d
commit
5ce525efc7
1 changed files with 3 additions and 0 deletions
|
@ -221,6 +221,9 @@ struct VectorReader : public MemoryReader
|
||||||
{
|
{
|
||||||
mVector.resize(size);
|
mVector.resize(size);
|
||||||
memcpy(mVector.data(), data, size);
|
memcpy(mVector.data(), data, size);
|
||||||
|
mData = mVector.data();
|
||||||
|
mLength = (long)size;
|
||||||
|
mPos = 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue