diff --git a/src/g_level.cpp b/src/g_level.cpp index 72621c5ea3..c604bb32e6 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -2066,7 +2066,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()); } } diff --git a/src/maploader/polyobjects.cpp b/src/maploader/polyobjects.cpp index b8449521fe..e28c5f53c5 100644 --- a/src/maploader/polyobjects.cpp +++ b/src/maploader/polyobjects.cpp @@ -315,7 +315,7 @@ void MapLoader::TranslateToStartSpot (int tag, const DVector2 &origin) } po->CalcCenter(); // For compatibility purposes - po->CenterSubsector = R_PointInSubsector(po->GetLevel(), po->CenterSpot.pos); + po->CenterSubsector = R_PointInSubsector(Level, po->CenterSpot.pos); } //==========================================================================