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:
parent
baefff323c
commit
ee7accf3bd
1 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue