1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-12 15:11:26 +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: case ESM4::SUB_NVPP:
{ {
// FO4
if (esmVer == 0x3F800000)
{
reader.skipSubRecordData();
break;
}
std::uint32_t total; std::uint32_t total;
std::uint32_t count; std::uint32_t count;
reader.get(total); reader.get(total);
@ -333,9 +339,9 @@ void ESM4::Navigation::load(ESM4::Reader& reader)
} }
case ESM4::SUB_NVMI: // multiple 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; break;
} }