mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-29 14:34: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)
|
for (size_t row = source->mEdges.size(); row > 0; --row)
|
||||||
{
|
{
|
||||||
commands.push(
|
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
|
else
|
||||||
{
|
{
|
||||||
int randomIndex
|
size_t randomIndex = Misc::Rng::rollDice(mTargets.size());
|
||||||
= static_cast<int>(std::floor(Misc::Rng::rollClosedProbability() * (mTargets.size() - 1)));
|
|
||||||
recIndex = mTargets[randomIndex];
|
recIndex = mTargets[randomIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue