aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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