mixpanel-unity
mixpanel-unity copied to clipboard
Fix incorrect condition for determining if all tracking data was deleted
Fixes a bug introduced in #152, where the ID is never reset. Instead of checking dataIndex == maxIndex, it should be dataIndex > maxIndex, since the last iteration of the while loop increments dataIndex past maxIndex before stopping. In other words, the dataIndex is no longer in bounds at this point.
Also I revised the comment for brevity.