1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 14:34:29 +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)
{
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
{
int randomIndex
= static_cast<int>(std::floor(Misc::Rng::rollClosedProbability() * (mTargets.size() - 1)));
size_t randomIndex = Misc::Rng::rollDice(mTargets.size());
recIndex = mTargets[randomIndex];
}