add
This commit is contained in:
		
							parent
							
								
									6eef97b6ce
								
							
						
					
					
						commit
						e6737ab602
					
				| @ -43,8 +43,8 @@ void cancel_train(struct car* first) { | ||||
|         return; | ||||
|     } | ||||
|     if(first->next != NULL){ | ||||
|        cancel_train(first->next); | ||||
|        first->next = NULL; | ||||
|        cancel_train(first->next); | ||||
|     } | ||||
|     else if(first->next == NULL){ | ||||
|         free(first); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user