From 0c2b3afa9bbb116a6a5a8df722b37a3bb66835a5 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 13 Jan 2023 20:04:32 +0100 Subject: [PATCH] Fixed bug in fomod support --- src/fomod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fomod.c b/src/fomod.c index 11375f7..66b4117 100644 --- a/src/fomod.c +++ b/src/fomod.c @@ -262,13 +262,13 @@ error_t fomod_installFOMod(const char * modFolder, const char * destination) { case ANY: printf("Select any (space separated) (leave empty for nothing) :\n"); min = 0; - max = (u_int8_t)group.pluginCount - 1; + max = (u_int8_t)group.pluginCount; break; case AT_LEAST_ONE: printf("Select at least one (space separated) (leave empty for nothing) :\n"); min = 1; - max = (u_int8_t)group.pluginCount - 1; + max = (u_int8_t)group.pluginCount; break; case AT_MOST_ONE: