From e7b58d48e32e017a3d5ceddeb60ec04f6166d81f Mon Sep 17 00:00:00 2001
From: Thorsten Brehm <brehm@patagonia.southamerica>
Date: Sat, 2 Oct 2010 00:40:24 +0200
Subject: [PATCH] Fix wxradar to use path resolution make it work with the new
 "multiple aircraft dir" feature

---
 src/Instrumentation/wxradar.cxx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/Instrumentation/wxradar.cxx b/src/Instrumentation/wxradar.cxx
index f32e12605..e8619dec6 100644
--- a/src/Instrumentation/wxradar.cxx
+++ b/src/Instrumentation/wxradar.cxx
@@ -122,10 +122,9 @@ wxRadarBg::init ()
         "Aircraft/Instruments/Textures/od_wxradar.rgb");
     _resultTexture = FGTextureManager::createTexture(_texture_path.c_str(), false);
 
-    SGPath tpath(globals->get_fg_root());
     string path = _Instrument->getStringValue("echo-texture-path",
         "Aircraft/Instruments/Textures/wxecho.rgb");
-    tpath.append(path);
+    SGPath tpath = globals->resolve_aircraft_path(path);
 
     // no mipmap or else alpha will mix with pixels on the border of shapes, ruining the effect
     _wxEcho = SGLoadTexture2D(tpath, false, false);