could also be the location bug i said. also he should check if the maxIndex is 0 only in the de-index portion. this will stop it from unnecessarily running.
not sure y u do this after u reduce the index.
-
Set TempReal = EF_Time[TempIndex]
-
Set EF_Time[TempIndex] = EF_Time[EF_Integer]
-
Set EF_Time[EF_Integer] = TempReal
also u should reduce the looping integer after u reduce the maxIndex integer.
if u dont ur spell looping will skip an index whenever something gets de-indexed.