build 200430. vehicle lookup fix

This commit is contained in:
tmj-fstate
2020-04-30 16:26:31 +02:00
parent c457ffe05d
commit be37862352
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -1,5 +1,5 @@
#pragma once
#define VERSION_MAJOR 20
#define VERSION_MINOR 406
#define VERSION_MINOR 430
#define VERSION_REVISION 0