--- In [email protected], Ravi Mishra <ravics...@...> wrote: > > while(cplane->cell[cell].deactivation.first == NULL && > cplane->cell[cell].activation.first == NULL && > cellNextCounter < cplane->cellAmount) {
Only guessing, but should that be:
while((cplane->cell[cell].deactivation.first == NULL ||
cplane->cell[cell].activation.first == NULL) &&
cellNextCounter < cplane->cellAmount) {
?
BTW more comments in the code might help us (and you) to understand it more
easily.
