don't update positions for the same cell twice
This commit is contained in:
parent
bd7401d844
commit
f1200a528b
|
@ -189,7 +189,9 @@ this.searchCellsForPositions = function()
|
|||
updatePositions(door.destination.cell)
|
||||
-- one more time
|
||||
for internalDoor in door.destination.cell:iterateReferences(tes3.objectType.door) do
|
||||
if internalDoor.destination then updatePositions(internalDoor.destination.cell) end
|
||||
if internalDoor.destination and internalDoor.destination.cell ~= cell then
|
||||
updatePositions(internalDoor.destination.cell)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue