From 1ea67db9e684aad21d75ce919928e7b009b82a46 Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 9 Sep 2019 00:42:57 +0200 Subject: [PATCH] path_next_node cleanup --- Source/path.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/path.cpp b/Source/path.cpp index 516e1ed02..c1c949710 100644 --- a/Source/path.cpp +++ b/Source/path.cpp @@ -288,7 +288,9 @@ void path_next_node(PATHNODE *pPath) int f; next = path_2_nodes; - if (path_2_nodes->NextNode) { + if (!path_2_nodes->NextNode) { + path_2_nodes->NextNode = pPath; + } else { current = path_2_nodes; next = path_2_nodes->NextNode; f = pPath->f; @@ -298,8 +300,6 @@ void path_next_node(PATHNODE *pPath) } pPath->NextNode = next; current->NextNode = pPath; - } else { - path_2_nodes->NextNode = pPath; } }