clear
This commit is contained in:
parent
3a8404ccf4
commit
68689e212a
@ -87,6 +87,7 @@ struct car* clear_train(struct car* first, const char* target) {
|
||||
struct car* prev = NULL;
|
||||
if(first == this){
|
||||
first = this->next;
|
||||
this->next = NULL;
|
||||
free(this);
|
||||
return first;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user