From 3c39c47e2fb5a003bb3bc940ecd8e0d830b11cf6 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 28 Aug 2012 18:23:01 +0200 Subject: [PATCH] don't make copies of CellRefList & LiveCellRef --- apps/openmw/mwworld/worldimp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 8e9d981c1..a099f71cc 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -1035,11 +1035,11 @@ namespace MWWorld { std::vector result; - MWWorld::CellRefList doors = cell->doors; - std::list< MWWorld::LiveCellRef > refList = doors.list; + MWWorld::CellRefList& doors = cell->doors; + std::list< MWWorld::LiveCellRef >& refList = doors.list; for (std::list< MWWorld::LiveCellRef >::iterator it = refList.begin(); it != refList.end(); ++it) { - MWWorld::LiveCellRef ref = *it; + MWWorld::LiveCellRef& ref = *it; if (ref.ref.teleport) {