This commit is contained in:
Anton Dolozin 2025-10-28 21:17:19 +01:00
parent 35c325dd8f
commit 38aa06c425

View File

@ -64,7 +64,7 @@ struct car* clear_train(struct car* first, const char* target) {
struct car* prev= first;
struct car* temp = first->next;
while (prev && temp)
{ if (strcmp(prev, target) == 0)
{ if (strcmp(prev->value, target) == 0)
{ struct car* targetNode =prev;
prev = temp;
temp = temp->next;