From 6bb06ffb808ba1995ab755652aa1e795b5c2b3db Mon Sep 17 00:00:00 2001 From: Mauco03 <marco.gaibotti@skywarder.eu> Date: Fri, 10 May 2024 16:23:03 +0200 Subject: [PATCH] [refactoring-ode][Mission] Fixed a bug which caused infinite recursion --- classes/Mission.m | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/classes/Mission.m b/classes/Mission.m index 825d8d3..947f76b 100644 --- a/classes/Mission.m +++ b/classes/Mission.m @@ -11,14 +11,14 @@ classdef Mission < Config % an empty mission properties - name % Mission name, used to access <mission> folder + name char % Mission name, used to access <mission> folder end properties(SetAccess = protected) - currentPath - configPath - dataPath - msaPath + currentPath char + configPath char + dataPath char + msaPath char end properties(Access = protected) @@ -32,7 +32,9 @@ classdef Mission < Config m {mustBeA(m, {'logical', 'string', 'char'})} = false end - if ~isa(m, 'string') && isempty(m), return; end + if nargin == 0 + return; + end filePath = fullfile(fileparts(mfilename("fullpath")), '..', 'missions'); filePath = trimPath(filePath); -- GitLab