mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-29 17:04:29 +00:00
Address comments
This commit is contained in:
parent
b9096410c3
commit
cc10352def
2 changed files with 2 additions and 3 deletions
|
|
@ -316,7 +316,7 @@ namespace CSVRender
|
|||
for (size_t row = source->mEdges.size(); row > 0; --row)
|
||||
{
|
||||
commands.push(
|
||||
new CSMWorld::DeleteNestedCommand(*model, idString, static_cast<int>(row), parentColumn));
|
||||
new CSMWorld::DeleteNestedCommand(*model, idString, static_cast<int>(row - 1), parentColumn));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -487,8 +487,7 @@ namespace NifOsg
|
|||
}
|
||||
else
|
||||
{
|
||||
int randomIndex
|
||||
= static_cast<int>(std::floor(Misc::Rng::rollClosedProbability() * (mTargets.size() - 1)));
|
||||
size_t randomIndex = Misc::Rng::rollDice(mTargets.size());
|
||||
recIndex = mTargets[randomIndex];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue