don't update positions for the same cell twice

This commit is contained in:
Lilian Jónsdóttir 2020-10-13 21:46:39 -07:00
parent bd7401d844
commit f1200a528b

View file

@ -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