forked from mirror/openmw-tes3mp
don't make copies of CellRefList & LiveCellRef
This commit is contained in:
parent
571d5095d4
commit
3c39c47e2f
1 changed files with 3 additions and 3 deletions
|
@ -1035,11 +1035,11 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
std::vector<World::DoorMarker> result;
|
std::vector<World::DoorMarker> result;
|
||||||
|
|
||||||
MWWorld::CellRefList<ESM::Door> doors = cell->doors;
|
MWWorld::CellRefList<ESM::Door>& doors = cell->doors;
|
||||||
std::list< MWWorld::LiveCellRef<ESM::Door> > refList = doors.list;
|
std::list< MWWorld::LiveCellRef<ESM::Door> >& refList = doors.list;
|
||||||
for (std::list< MWWorld::LiveCellRef<ESM::Door> >::iterator it = refList.begin(); it != refList.end(); ++it)
|
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)
|
if (ref.ref.teleport)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue