diff --git a/simgear/misc/sg_path.cxx b/simgear/misc/sg_path.cxx index a736fa67..7d17d3c2 100644 --- a/simgear/misc/sg_path.cxx +++ b/simgear/misc/sg_path.cxx @@ -532,10 +532,11 @@ void SGPath::validate() const //------------------------------------------------------------------------------ void SGPath::checkAccess() const { - if( _rwCached && _cacheEnabled ) + if ( _rwCached && _cacheEnabled ) { return; + } - validate(); + validate(); _rwCached = true; }