delete
This commit is contained in:
parent
cd83aa7005
commit
d8021186e1
@ -35,7 +35,7 @@ void cancel_train(struct car* first) {
|
||||
if(first == NULL){
|
||||
exit(0);
|
||||
}
|
||||
if(this->next == NULL){
|
||||
if(first->next == NULL){
|
||||
struct car* this = first;
|
||||
first = first->next;
|
||||
free(this);
|
||||
|
Loading…
Reference in New Issue
Block a user