- use std::vector for the MemoryArrayReader
This commit is contained in:
parent
2671394961
commit
def6bffdfc
6 changed files with 12 additions and 14 deletions
|
|
@ -320,10 +320,10 @@ unsigned FSavegameManagerBase::ExtractSaveData(int index)
|
|||
{
|
||||
FileReader picreader;
|
||||
|
||||
picreader.OpenMemoryArray([=](TArray<uint8_t> &array)
|
||||
picreader.OpenMemoryArray([=](std::vector<uint8_t> &array)
|
||||
{
|
||||
auto cache = pic->Lock();
|
||||
array.Resize(pic->LumpSize);
|
||||
array.resize(pic->LumpSize);
|
||||
memcpy(&array[0], cache, pic->LumpSize);
|
||||
pic->Unlock();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue