diff options
Diffstat (limited to 'src/post/goom/goom_tools.h')
-rw-r--r-- | src/post/goom/goom_tools.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post/goom/goom_tools.h b/src/post/goom/goom_tools.h index 9ed16d6fc..2bd74b95b 100644 --- a/src/post/goom/goom_tools.h +++ b/src/post/goom/goom_tools.h @@ -16,7 +16,7 @@ extern unsigned short rand_pos; rand_tab [rand_pos++] = rand () ; #define RAND()\ - (rand_tab[rand_pos = rand_pos + 1]) + (rand_tab[rand_pos = (rand_pos + 1) % NB_RAND]) #define RAND_CLOSE()\ free (rand_tab);\ |