From: Kevin Day Date: Mon, 7 Aug 2023 16:30:12 +0000 (-0500) Subject: Bugfix: Wrong index is being used for the file in Featureless Make. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=e3d65ac071ba55101bbf5205ba5d34191bddd6d7;p=fll 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. --- 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) {