macos_ci_fix
Alexei Kotov 1 year ago
parent 0fe095303f
commit d55ba0cfa2

@ -84,11 +84,9 @@ namespace Nif
nif->read(mAccumRootName); nif->read(mAccumRootName);
mTextKeys.read(nif); mTextKeys.read(nif);
} }
uint32_t numBlocks; mControlledBlocks.resize(nif->get<uint32_t>());
nif->read(numBlocks);
if (nif->getVersion() >= NIFStream::generateVersion(10, 1, 0, 106)) if (nif->getVersion() >= NIFStream::generateVersion(10, 1, 0, 106))
nif->read(mArrayGrowBy); nif->read(mArrayGrowBy);
mControlledBlocks.resize(numBlocks);
for (ControlledBlock& block : mControlledBlocks) for (ControlledBlock& block : mControlledBlocks)
block.read(nif); block.read(nif);
} }
@ -109,8 +107,8 @@ namespace Nif
nif->read(mWeight); nif->read(mWeight);
mTextKeys.read(nif); mTextKeys.read(nif);
mExtrapolationMode = static_cast<NiTimeController::ExtrapolationMode>(nif->getUInt()); mExtrapolationMode = static_cast<NiTimeController::ExtrapolationMode>(nif->get<uint32_t>());
mFrequency = nif->getFloat(); nif->read(mFrequency);
if (nif->getVersion() <= NIFStream::generateVersion(10, 4, 0, 1)) if (nif->getVersion() <= NIFStream::generateVersion(10, 4, 0, 1))
nif->read(mPhase); nif->read(mPhase);
nif->read(mStartTime); nif->read(mStartTime);

Loading…
Cancel
Save