diff options
| author | Kevin Ferrare <kevin@rockbox.org> | 2007-07-20 03:03:29 +0000 |
|---|---|---|
| committer | Kevin Ferrare <kevin@rockbox.org> | 2007-07-20 03:03:29 +0000 |
| commit | 40ea9d09e75426e19453ad584b71e47bad9a2617 (patch) | |
| tree | 1c259308c98c24d4cbe7c390a3868ade92272b47 /apps/plugins | |
| parent | 21cc9a6d761bf1d99a9938a13259c19abe23d281 (diff) | |
| download | rockbox-40ea9d09e75426e19453ad584b71e47bad9a2617.zip rockbox-40ea9d09e75426e19453ad584b71e47bad9a2617.tar.gz rockbox-40ea9d09e75426e19453ad584b71e47bad9a2617.tar.bz2 rockbox-40ea9d09e75426e19453ad584b71e47bad9a2617.tar.xz | |
Fixes red hopefully
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13936 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/dice.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c index 7392737..1c3cb2f 100644 --- a/apps/plugins/dice.c +++ b/apps/plugins/dice.c @@ -143,7 +143,7 @@ bool dice_menu(struct dices * dice) { MENUITEM_STRINGLIST(menu,"Dice Menu",NULL,"Roll Dice","Number of Dice", "Number of Sides","Quit"); - struct opt_items nb_sides_option[8] = { + static struct opt_items nb_sides_option[8] = { { "3", -1 }, { "4", -1 }, { "6", -1 }, @@ -153,7 +153,8 @@ bool dice_menu(struct dices * dice) { { "20", -1 }, { "100", -1 } }; - int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 }; + static int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 }; + while (!menu_quit) { switch(rb->do_menu(&menu, &selection)){ case 0: |