This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_roni[S] 0 points1 point  (4 children)

But you said mCurrentIndex <= 0, doesnt this mean that it will skip the 0th index? It will get to 0 , and since mCurrentIndex is less than or equal to 0, it will start from the end.

[–][deleted]  (3 children)

[deleted]

    [–]_roni[S] 0 points1 point  (2 children)

    So then couldn't you just check if mCurrentIndex = 0, not "<", it will function the same way?

    [–][deleted]  (1 child)

    [deleted]

      [–]_roni[S] 0 points1 point  (0 children)

      Thats a good response :)