mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 18:09:39 +00:00
CellRefList::find was making a copy of the recList each time the function was called; replaced with a reference
This commit is contained in:
parent
3a26219cb8
commit
8565f5ea8f
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ namespace ESMS
|
||||||
// ESMStore. Insert the reference into the list if a match is
|
// ESMStore. Insert the reference into the list if a match is
|
||||||
// found. If not, throw an exception.
|
// found. If not, throw an exception.
|
||||||
template <typename Y>
|
template <typename Y>
|
||||||
void find(CellRef &ref, Y recList)
|
void find(CellRef &ref, const Y& recList)
|
||||||
{
|
{
|
||||||
const X* obj = recList.find(ref.refID);
|
const X* obj = recList.find(ref.refID);
|
||||||
if(obj == NULL)
|
if(obj == NULL)
|
||||||
|
|
Loading…
Reference in a new issue