Skip to content
Snippets Groups Projects
Commit 6bb06ffb authored by Marco Luigi Gaibotti's avatar Marco Luigi Gaibotti
Browse files

[refactoring-ode][Mission] Fixed a bug which caused infinite recursion

parent 359b230e
Branches
No related tags found
1 merge request!3Refactoring ODE functions
...@@ -11,14 +11,14 @@ classdef Mission < Config ...@@ -11,14 +11,14 @@ classdef Mission < Config
% an empty mission % an empty mission
properties properties
name % Mission name, used to access <mission> folder name char % Mission name, used to access <mission> folder
end end
properties(SetAccess = protected) properties(SetAccess = protected)
currentPath currentPath char
configPath configPath char
dataPath dataPath char
msaPath msaPath char
end end
properties(Access = protected) properties(Access = protected)
...@@ -32,7 +32,9 @@ classdef Mission < Config ...@@ -32,7 +32,9 @@ classdef Mission < Config
m {mustBeA(m, {'logical', 'string', 'char'})} = false m {mustBeA(m, {'logical', 'string', 'char'})} = false
end end
if ~isa(m, 'string') && isempty(m), return; end if nargin == 0
return;
end
filePath = fullfile(fileparts(mfilename("fullpath")), '..', 'missions'); filePath = fullfile(fileparts(mfilename("fullpath")), '..', 'missions');
filePath = trimPath(filePath); filePath = trimPath(filePath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment