- fixed loading of saved game

Wrong FName constructor was picked for name of map snapshot, it was not restored because of that
This commit is contained in:
alexey.lysiuk 2019-01-13 12:24:17 +02:00
parent 2bb3571c2c
commit d3eb983dd3

View file

@ -2065,7 +2065,7 @@ void G_ReadSnapshots(FResourceFile *resf)
if (ptr != nullptr)
{
ptrdiff_t maplen = ptr - resl->FullName.GetChars();
FName mapname(resl->FullName.GetChars(), (size_t)maplen);
FName mapname(resl->FullName.GetChars(), (size_t)maplen, false);
currentSession->Snapshots.Insert(mapname, resl->GetRawData());
}
}