From e3d65ac071ba55101bbf5205ba5d34191bddd6d7 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 7 Aug 2023 11:30:12 -0500 Subject: [PATCH] Bugfix: Wrong index is being used for the file in Featureless Make. The values array should be used and not the location of the parameter. --- level_3/fake/c/main/fake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_3/fake/c/main/fake.c b/level_3/fake/c/main/fake.c index 7cd4659..fdb9aa5 100644 --- a/level_3/fake/c/main/fake.c +++ b/level_3/fake/c/main/fake.c @@ -454,7 +454,7 @@ extern "C" { ]; if (parameter->result & f_console_result_value_e) { - const f_number_unsigned_t index = parameter->values.array[parameter->location]; + const f_number_unsigned_t index = parameter->values.array[parameter->values.used - 1]; // @fixme these should not be accessing main->program.parameters.arguments directly and should instead use setting flags. if (f_path_is_absolute(main->program.parameters.arguments.array[index]) == F_true || f_path_is_relative_current(main->program.parameters.arguments.array[index]) == F_true) { -- 1.8.3.1