1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 17:39:40 +00:00

Don't use at() instead [] when length is checked/known

This commit is contained in:
jvoisin 2021-05-15 15:38:17 +02:00
parent 5d83de189a
commit 690d85d0e9
3 changed files with 4 additions and 4 deletions

View file

@ -417,7 +417,7 @@ namespace MWRender
{
try
{
unsigned int index = cell->mContextList.at(i).index;
unsigned int index = cell->mContextList[i].index;
if (esm.size()<=index)
esm.resize(index+1);
cell->restore(esm[index], i);

View file

@ -547,7 +547,7 @@ namespace MWWorld
try
{
// Reopen the ESM reader and seek to the right position.
int index = mCell->mContextList.at(i).index;
int index = mCell->mContextList[i].index;
mCell->restore (esm[index], i);
ESM::CellRef ref;
@ -605,7 +605,7 @@ namespace MWWorld
try
{
// Reopen the ESM reader and seek to the right position.
int index = mCell->mContextList.at(i).index;
int index = mCell->mContextList[i].index;
mCell->restore (esm[index], i);
ESM::CellRef ref;

View file

@ -1003,7 +1003,7 @@ namespace MWWorld
if (index >= mStatic.size()) {
return nullptr;
}
return &mStatic.at(index);
return &mStatic[index];
}
const ESM::Attribute *Store<ESM::Attribute>::find(size_t index) const