Foreach saferemove causes infinite loop
#5

This problem is annoying, I made a workaround that consists of adding the IDs I want to remove from an iterator to an array and once the foreach finishes I run the array (in a for() loop) and remove them normally.

Probably not the best way, but fixed the issue.
Reply


Messages In This Thread
Foreach saferemove causes infinite loop - by m4karow - 01.10.2017, 14:27
Re: Foreach saferemove causes infinite loop - by m4karow - 01.10.2017, 16:22
Re: Foreach saferemove causes infinite loop - by raydx - 01.10.2017, 17:18
Re: Foreach saferemove causes infinite loop - by m4karow - 01.10.2017, 17:32
Re: Foreach saferemove causes infinite loop - by Marricio - 01.10.2017, 18:45
Re: Foreach saferemove causes infinite loop - by m4karow - 01.10.2017, 19:06
Re: Foreach saferemove causes infinite loop - by None1337 - 01.10.2017, 19:11
Re: Foreach saferemove causes infinite loop - by m4karow - 01.10.2017, 19:15
Re: Foreach saferemove causes infinite loop - by None1337 - 01.10.2017, 19:24
Re: Foreach saferemove causes infinite loop - by m4karow - 01.10.2017, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)