clear
This commit is contained in:
		
							parent
							
								
									a8b4648778
								
							
						
					
					
						commit
						72699efb8a
					
				@ -86,8 +86,8 @@ struct car* clear_train(struct car* first, const char* target) {
 | 
				
			|||||||
                if(x == 0){
 | 
					                if(x == 0){
 | 
				
			||||||
                    struct car* temp = this->next->next;
 | 
					                    struct car* temp = this->next->next;
 | 
				
			||||||
                    this->next = NULL;
 | 
					                    this->next = NULL;
 | 
				
			||||||
                    this->next = temp; 
 | 
					                    //this->next = temp; 
 | 
				
			||||||
                    return this;    
 | 
					                    return temp;    
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                this = this->next;
 | 
					                this = this->next;
 | 
				
			||||||
            //}
 | 
					            //}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user