From 062c736437cf019bd781d8b34a538bb7ba88d286 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 20 Aug 2017 21:04:21 +0000 Subject: (svn r27896) -Fix: some warnings --- src/pathfinder/npf/npf.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pathfinder') diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp index ebaf2ac57..1867b4b18 100644 --- a/src/pathfinder/npf/npf.cpp +++ b/src/pathfinder/npf/npf.cpp @@ -1236,6 +1236,7 @@ bool NPFTrainFindNearestSafeTile(const Train *v, TileIndex tile, Trackdir trackd /* We set this in case the target is also the start tile, we will just * return a not found then */ start1.user_data[NPF_TRACKDIR_CHOICE] = INVALID_TRACKDIR; + start1.user_data[NPF_NODE_FLAGS] = 0; start1.direction = trackdir; NPFSetFlag(&start1, NPF_FLAG_IGNORE_RESERVED, true); -- cgit v1.2.3-70-g09d2