aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-06-28 15:20:41 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-06-28 15:20:41 +0200
commit1dbf51f4d522c31211b01683550a58b541badad6 (patch)
tree367e62a9aa83b8752c50984903297b116511b898 /src
parent98b8339bceb833eb2419bc349547cb8342e4be1a (diff)
downloadnissy-classic-1dbf51f4d522c31211b01683550a58b541badad6.tar.gz
nissy-classic-1dbf51f4d522c31211b01683550a58b541badad6.zip
Fixed HTR bug - thanks to SuperDJY
Diffstat (limited to '')
-rw-r--r--src/alg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alg.c b/src/alg.c
index fbe1105..06efd98 100644
--- a/src/alg.c
+++ b/src/alg.c
@@ -58,7 +58,6 @@ moveset_htr = {
58 .allowed_next = allowed_next_HTM, 58 .allowed_next = allowed_next_HTM,
59}; 59};
60 60
61static int nmoveset = 5;
62static Moveset * all_ms[] = { 61static Moveset * all_ms[] = {
63 &moveset_HTM, 62 &moveset_HTM,
64 &moveset_URF, 63 &moveset_URF,
@@ -66,6 +65,7 @@ static Moveset * all_ms[] = {
66 &moveset_drud, 65 &moveset_drud,
67 &moveset_drud_noD, 66 &moveset_drud_noD,
68 &moveset_htr, 67 &moveset_htr,
68 NULL
69}; 69};
70 70
71/* Functions *****************************************************************/ 71/* Functions *****************************************************************/
@@ -704,6 +704,6 @@ init_all_movesets(void)
704{ 704{
705 int i; 705 int i;
706 706
707 for (i = 0; i < nmoveset; i++) 707 for (i = 0; all_ms[i] != NULL; i++)
708 init_moveset(all_ms[i]); 708 init_moveset(all_ms[i]);
709} 709}

Generated with cgit - Back to sebastiano.tronto.net