mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- 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:
parent
2bb3571c2c
commit
d3eb983dd3
1 changed files with 1 additions and 1 deletions
|
@ -2065,7 +2065,7 @@ void G_ReadSnapshots(FResourceFile *resf)
|
||||||
if (ptr != nullptr)
|
if (ptr != nullptr)
|
||||||
{
|
{
|
||||||
ptrdiff_t maplen = ptr - resl->FullName.GetChars();
|
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());
|
currentSession->Snapshots.Insert(mapname, resl->GetRawData());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue