I’m not trying to copy a group, i want to remove the ones in 1 group to another, leaving the otherone empty for the next round, because my app plays with this group transitioning. Trust me, it makes perfect sense… Anyway, i resolved the issue myself; the problem was that the value of “k” changes each time (obviously), and in doing so, the value that was in TestGroup3:insert(ResultGroup[2] is no longer in that position after the first loop, it would be in TestGroup3:insert(ResultGroup[1]), therefore by the time it gets to a certain number, there will be no value stored in that index. To solve this I replased TestGroup3:insert(ResultGroup[k]) for TestGroup3:insert(ResultGroup[1]), that way i will ensure getting every single object out of that group due to the index 1 changes every cycle.
I hope this thread can help someone in the future [import]uid: 123133 topic_id: 30304 reply_id: 121430[/import]