1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 21:39:48 +00:00

Don't read affected nodes for 10.0.1.0 NiDynamicEffect

This commit is contained in:
Alexei Kotov 2023-08-12 21:32:16 +03:00
parent baefff323c
commit ee7accf3bd

View file

@ -12,9 +12,13 @@ namespace Nif
if (nif->getVersion() >= nif->generateVersion(10, 1, 0, 106)
&& nif->getBethVersion() < NIFFile::BethVersion::BETHVER_FO4)
nif->getBoolean(); // Switch state
unsigned int numAffectedNodes = nif->getUInt();
for (unsigned int i = 0; i < numAffectedNodes; ++i)
nif->getUInt(); // ref to another Node
if (nif->getVersion() <= NIFFile::VER_MW
|| (nif->getVersion() >= nif->generateVersion(10, 1, 0, 0)
&& nif->getBethVersion() < NIFFile::BethVersion::BETHVER_FO4))
{
size_t numAffectedNodes = nif->get<uint32_t>();
nif->skip(numAffectedNodes * 4);
}
}
void NiLight::read(NIFStream* nif)