breaking out of the inner for loop averts the crash:

Code:
						int32_t cid=-1; int8_t cs=CSet;
						int index = combo_pool_listpos[j]+i;
						if (index == MAXCOMBOPOOLS) break;
						combo_pool const& cp = combo_pools[index];