use proper access functions to ResourceData.

This commit is contained in:
Christoph Oelckers 2023-12-10 10:32:16 +01:00
commit 7d0ad4897f
4 changed files with 5 additions and 5 deletions

View file

@ -306,7 +306,7 @@ unsigned FSavegameManagerBase::ExtractSaveData(int index)
auto data = resf->Read(info);
FSerializer arc;
if (!arc.OpenReader((const char*)data.data(), data.size()))
if (!arc.OpenReader(data.string(), data.size()))
{
return index;
}