20.06.2015, 12:03
Don't use Iter_Remove within foreach loop! Use Iter_SafeRemove (in your code it would be
pawn Код:
Iter_SafeRemove(Jobs, i, i);
Quote:
<summary>Iter_SafeRemove</summary> <param name="iter">Name of the iterator to remove data from.</param> <param name="value">Data to remove.</param> <param name="next">Container for the pointer to the next element.</param> <returns> - </returns> <remarks> Wrapper for Iter_SafeRemoveInternal. Common use: Iter_SafeRemove(iter, i, i); native Iter_SafeRemove(Iterator:Name<>, value, &next); </remarks> |