- use std::vector for the MemoryArrayReader

This commit is contained in:
Christoph Oelckers 2023-08-19 15:32:53 +02:00
commit def6bffdfc
6 changed files with 12 additions and 14 deletions

View file

@ -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;