From 359b230ebe34e365ab159239b28b54c934b8a832 Mon Sep 17 00:00:00 2001 From: Mauco03 <marco.gaibotti@skywarder.eu> Date: Fri, 10 May 2024 13:27:18 +0200 Subject: [PATCH] [refactoring-ode][Mission] Fixed a bug where constructor would not work with strings --- classes/Mission.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Mission.m b/classes/Mission.m index fe5590f..825d8d3 100644 --- a/classes/Mission.m +++ b/classes/Mission.m @@ -32,7 +32,7 @@ classdef Mission < Config m {mustBeA(m, {'logical', 'string', 'char'})} = false end - if ~m, return; end + if ~isa(m, 'string') && isempty(m), return; end filePath = fullfile(fileparts(mfilename("fullpath")), '..', 'missions'); filePath = trimPath(filePath); -- GitLab