As Eduard Lebedyuk already wrote: If you want to work on a list you iterate through (esp. when removing entries) you best loop backwards.
for i = SegmentCount:-1:1 { ... }Otherwise you will remove entries and later try to read them.
Regards
Matthias
- Log in to post comments