Crash on exit :(

Started by
9 comments, last by Damocles 21 years, 8 months ago
I think I got it

change this

      Actor* A=FirstActor;	Actor* A2;	do{	        A2=A->next;	        delete A;	        A=A2;	} while (A!=NULL);  


to this


        Actor* A=FirstActor;	Actor* A2;	while(A!=NULL){	            A2=A->next;    delete A;	        A=A2;		}   


Remeber do while check at the end of the loop not the beginning.


[edited by - Monder on July 27, 2002 6:29:33 PM]

This topic is closed to new replies.

Advertisement