From 4532f0f2eb1466636718cc62316c3842d6b82c9b Mon Sep 17 00:00:00 2001 From: nvhaizi1 Date: Sun, 29 May 2022 13:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.c b/src/controller.c index b2dfe13..03bb162 100644 --- a/src/controller.c +++ b/src/controller.c @@ -49,11 +49,11 @@ bus_query_t *FCFSQuery() bus_query_t *p = queries; if (the_bus->rail_node_pos == p->node) { + queries = queries->next_node; return p; } else { - queries = queries->next_node; return NULL; } }