From 13b7f222f39e63a5e4cf08117f49ec8f25dc8c82 Mon Sep 17 00:00:00 2001 From: matthijs Date: Fri, 17 Jun 2005 00:46:33 +0000 Subject: [PATCH] (svn r2451) * Fix: Assertion caused by passing a trackdir where a track was expected. --- npf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npf.c b/npf.c index ea48a82340..5e42c10db4 100644 --- a/npf.c +++ b/npf.c @@ -300,7 +300,7 @@ int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* parent) { * encounter, if it is red */ /* Is this a presignal exit or combo? */ - SignalType sigtype = GetSignalType(tile, trackdir); + SignalType sigtype = GetSignalType(tile, TrackdirToTrack(trackdir)); if (sigtype == SIGTYPE_EXIT || sigtype == SIGTYPE_COMBO) /* Penalise exit and combo signals differently (heavier) */ cost += _patches.npf_rail_firstred_exit_penalty;