mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-10 06:44:29 +00:00
Don't read affected nodes for 10.0.1.0 NiDynamicEffect
This commit is contained in:
parent
baefff323c
commit
ee7accf3bd
@ -12,9 +12,13 @@ namespace Nif
|
|||||||
if (nif->getVersion() >= nif->generateVersion(10, 1, 0, 106)
|
if (nif->getVersion() >= nif->generateVersion(10, 1, 0, 106)
|
||||||
&& nif->getBethVersion() < NIFFile::BethVersion::BETHVER_FO4)
|
&& nif->getBethVersion() < NIFFile::BethVersion::BETHVER_FO4)
|
||||||
nif->getBoolean(); // Switch state
|
nif->getBoolean(); // Switch state
|
||||||
unsigned int numAffectedNodes = nif->getUInt();
|
if (nif->getVersion() <= NIFFile::VER_MW
|
||||||
for (unsigned int i = 0; i < numAffectedNodes; ++i)
|
|| (nif->getVersion() >= nif->generateVersion(10, 1, 0, 0)
|
||||||
nif->getUInt(); // ref to another Node
|
&& nif->getBethVersion() < NIFFile::BethVersion::BETHVER_FO4))
|
||||||
|
{
|
||||||
|
size_t numAffectedNodes = nif->get<uint32_t>();
|
||||||
|
nif->skip(numAffectedNodes * 4);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void NiLight::read(NIFStream* nif)
|
void NiLight::read(NIFStream* nif)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user