JoeJ said:
for(int i=0; i < UnitCount; i++)
fixed. I haven`t had a chance to spin the code in VS.
Enumerations is probably what I should use, but it`s under 5 states what I have so it`s not confusing yet.
on a second look my code won`t do what it`s supposed to, I need to edit the algorithm further.