1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 16:34:30 +00:00

Address comments

This commit is contained in:
Evil Eye 2025-10-22 17:27:51 +02:00
parent b9096410c3
commit cc10352def
2 changed files with 2 additions and 3 deletions

View file

@ -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));
} }
} }
} }

View file

@ -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];
} }