From 8565f5ea8f24bbd081e64f6aaba47533077a8693 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Mon, 7 Jun 2010 16:29:17 +0200 Subject: [PATCH] CellRefList::find was making a copy of the recList each time the function was called; replaced with a reference --- game/cell_store.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/cell_store.hpp b/game/cell_store.hpp index 571631091..5eff1b755 100644 --- a/game/cell_store.hpp +++ b/game/cell_store.hpp @@ -49,7 +49,7 @@ namespace ESMS // ESMStore. Insert the reference into the list if a match is // found. If not, throw an exception. template - void find(CellRef &ref, Y recList) + void find(CellRef &ref, const Y& recList) { const X* obj = recList.find(ref.refID); if(obj == NULL)