From 297426ae8e1a1684f59afc4d9139606f467e43d9 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 25 Oct 2017 19:46:31 +0200 Subject: [PATCH] Ref T118, fixed wrong color search (restrict to color liveries) --- src/blackmisc/aviation/liverylist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blackmisc/aviation/liverylist.cpp b/src/blackmisc/aviation/liverylist.cpp index 285a327d3..895569fdf 100644 --- a/src/blackmisc/aviation/liverylist.cpp +++ b/src/blackmisc/aviation/liverylist.cpp @@ -91,7 +91,8 @@ namespace BlackMisc double bestDistance = 1.0; for (const CLivery &livery : *this) { - double d = livery.getColorDistance(fuselage, tail); + if (!livery.isColorLivery()) { continue; } + const double d = livery.getColorDistance(fuselage, tail); if (d == 0.0) { return livery; } // exact match if (d < bestDistance) {