1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 16:29:55 +00:00

Skip FO4 navmesh data

This commit is contained in:
Alexei Kotov 2023-08-16 13:28:41 +03:00
parent 6c82aef29f
commit 2b1ca84cb2

View file

@ -249,6 +249,12 @@ void ESM4::Navigation::load(ESM4::Reader& reader)
}
case ESM4::SUB_NVPP:
{
// FO4
if (esmVer == 0x3F800000)
{
reader.skipSubRecordData();
break;
}
std::uint32_t total;
std::uint32_t count;
reader.get(total);
@ -333,9 +339,9 @@ void ESM4::Navigation::load(ESM4::Reader& reader)
}
case ESM4::SUB_NVMI: // multiple
{
if (esmVer == ESM::VER_094 || esmVer == ESM::VER_170 || isFONV)
if (esmVer == ESM::VER_094 || esmVer == ESM::VER_170 || isFONV || esmVer == 0x3F800000)
{
reader.skipSubRecordData(); // FIXME: FO3/FONV have different form of NavMeshInfo
reader.skipSubRecordData(); // FIXME: FO3+ have different form of NavMeshInfo
break;
}