mixpanel-unity icon indicating copy to clipboard operation
mixpanel-unity copied to clipboard

Fix incorrect condition for determining if all tracking data was deleted

Open Kevinsomnia opened this issue 1 year ago • 0 comments

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.

Kevinsomnia avatar Jun 05 '24 08:06 Kevinsomnia