mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 08:15:34 +00:00
Cleanup
This commit is contained in:
parent
0fe095303f
commit
d55ba0cfa2
1 changed files with 3 additions and 5 deletions
|
@ -84,11 +84,9 @@ namespace Nif
|
|||
nif->read(mAccumRootName);
|
||||
mTextKeys.read(nif);
|
||||
}
|
||||
uint32_t numBlocks;
|
||||
nif->read(numBlocks);
|
||||
mControlledBlocks.resize(nif->get<uint32_t>());
|
||||
if (nif->getVersion() >= NIFStream::generateVersion(10, 1, 0, 106))
|
||||
nif->read(mArrayGrowBy);
|
||||
mControlledBlocks.resize(numBlocks);
|
||||
for (ControlledBlock& block : mControlledBlocks)
|
||||
block.read(nif);
|
||||
}
|
||||
|
@ -109,8 +107,8 @@ namespace Nif
|
|||
|
||||
nif->read(mWeight);
|
||||
mTextKeys.read(nif);
|
||||
mExtrapolationMode = static_cast<NiTimeController::ExtrapolationMode>(nif->getUInt());
|
||||
mFrequency = nif->getFloat();
|
||||
mExtrapolationMode = static_cast<NiTimeController::ExtrapolationMode>(nif->get<uint32_t>());
|
||||
nif->read(mFrequency);
|
||||
if (nif->getVersion() <= NIFStream::generateVersion(10, 4, 0, 1))
|
||||
nif->read(mPhase);
|
||||
nif->read(mStartTime);
|
||||
|
|
Loading…
Reference in a new issue