mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-03 17:54:06 +00:00
don't make copies of CellRefList & LiveCellRef
This commit is contained in:
parent
571d5095d4
commit
3c39c47e2f
@ -1035,11 +1035,11 @@ namespace MWWorld
|
||||
{
|
||||
std::vector<World::DoorMarker> result;
|
||||
|
||||
MWWorld::CellRefList<ESM::Door> doors = cell->doors;
|
||||
std::list< MWWorld::LiveCellRef<ESM::Door> > refList = doors.list;
|
||||
MWWorld::CellRefList<ESM::Door>& doors = cell->doors;
|
||||
std::list< MWWorld::LiveCellRef<ESM::Door> >& refList = doors.list;
|
||||
for (std::list< MWWorld::LiveCellRef<ESM::Door> >::iterator it = refList.begin(); it != refList.end(); ++it)
|
||||
{
|
||||
MWWorld::LiveCellRef<ESM::Door> ref = *it;
|
||||
MWWorld::LiveCellRef<ESM::Door>& ref = *it;
|
||||
|
||||
if (ref.ref.teleport)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user