From d9276ca09dd1efd213fb3180cac60a2ab452c533 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 28 Aug 2012 18:23:59 +0200 Subject: [PATCH] don't make copy of CellRefList in World::getNorthVector --- apps/openmw/mwworld/worldimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index a099f71cc8..968aa8ceea 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -1021,7 +1021,7 @@ namespace MWWorld Ogre::Vector2 World::getNorthVector (CellStore* cell) { - MWWorld::CellRefList statics = cell->statics; + MWWorld::CellRefList& statics = cell->statics; MWWorld::LiveCellRef* ref = statics.find("northmarker"); if (!ref) return Vector2(0, 1);