commit 1dbf51f4d522c31211b01683550a58b541badad6
parent 98b8339bceb833eb2419bc349547cb8342e4be1a
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Fri, 28 Jun 2024 15:20:41 +0200
Fixed HTR bug - thanks to SuperDJY
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/alg.c b/src/alg.c
@@ -58,7 +58,6 @@ moveset_htr = {
.allowed_next = allowed_next_HTM,
};
-static int nmoveset = 5;
static Moveset * all_ms[] = {
&moveset_HTM,
&moveset_URF,
@@ -66,6 +65,7 @@ static Moveset * all_ms[] = {
&moveset_drud,
&moveset_drud_noD,
&moveset_htr,
+ NULL
};
/* Functions *****************************************************************/
@@ -704,6 +704,6 @@ init_all_movesets(void)
{
int i;
- for (i = 0; i < nmoveset; i++)
+ for (i = 0; all_ms[i] != NULL; i++)
init_moveset(all_ms[i]);
}