From be37862352da62aa38ba03025718a6f5ebbc8727 Mon Sep 17 00:00:00 2001 From: tmj-fstate Date: Thu, 30 Apr 2020 16:26:31 +0200 Subject: [PATCH] build 200430. vehicle lookup fix --- DynObj.h | 2 +- version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DynObj.h b/DynObj.h index ca87c1c2..e3a79476 100644 --- a/DynObj.h +++ b/DynObj.h @@ -772,7 +772,7 @@ TDynamicObject::find_vehicle( coupling const Coupling, Predicate_ const Predicat return vehicle; } } // if we didn't yet find a suitable vehicle try in the other direction vehicle = this; - while( ( vehicle = vehicle->NextC( Coupling ) ) != nullptr ) { + while( ( vehicle = vehicle->PrevC( Coupling ) ) != nullptr ) { if( Predicate( vehicle ) ) { return vehicle; } } // if we still don't have a match give up diff --git a/version.h b/version.h index d75ea4a5..1a169058 100644 --- a/version.h +++ b/version.h @@ -1,5 +1,5 @@ #pragma once #define VERSION_MAJOR 20 -#define VERSION_MINOR 406 +#define VERSION_MINOR 430 #define VERSION_REVISION 0