mathmari
Gold Member
MHB
- 4,984
- 7
I like Serena said:Huh?Currently you are executing [m]StarS[k].plasy=plansystem;[/m].
If [m]StarS[k].plasy[/m] already contained planets, those will become inaccessible after the assignment. (Wasntme)
So is the for loop as followed?? (Wondering)
Code:
for(i=0; i<nrStarS; i++){
if(StarS[i].ss==ss){
k=i;
while(StarS[k].plasy != NULL){
StarS[k].plasy=StarS[k].plasy->next;
}
StarS[k].plasy=plansystem;
}
}