diff --git a/scripts/_00e_teleportationmescript.pex b/scripts/_00e_teleportationmescript.pex index 344930ad..b713040d 100644 Binary files a/scripts/_00e_teleportationmescript.pex and b/scripts/_00e_teleportationmescript.pex differ diff --git a/source/scripts/_00e_teleportationmescript.psc b/source/scripts/_00e_teleportationmescript.psc index fee33974..5bf1f822 100644 --- a/source/scripts/_00e_teleportationmescript.psc +++ b/source/scripts/_00e_teleportationmescript.psc @@ -12,8 +12,9 @@ Event OnEffectStart (Actor akTarket, Actor akCaster) MAGVampireSunlight.Play(PlayerREF) MagicEffect CastedMGEF = Self.GetBaseObject() + int nItems = _00E_TeleportScrollMGEF_List.GetSize() Int iIndex = 0 - While iIndex < 11 && !bScrollAdded + While iIndex < nItems && !bScrollAdded MagicEffect ScrollMGEF = _00E_TeleportScrollMGEF_List.GetAt(iIndex) as MagicEffect If ScrollMGEF == CastedMGEF Scroll ScrollToAdd = _00E_TeleportScroll_List.GetAt(iIndex) as Scroll