diff --git a/source/src/menus.cpp b/source/src/menus.cpp index cbf35ddc..ac9305f9 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -15,7 +15,7 @@ void menuset(void *m) if((curmenu = (gmenu *)m)) curmenu->open(); } -void showmenu(char *name) +void showmenu(const char *name) { if(!name) { @@ -769,4 +769,5 @@ void refreshapplymenu(void *menu, bool init) m->items.add(new mitemtext(m, newstring("Yes"), newstring("resetgl"), NULL, NULL)); m->items.add(new mitemtext(m, newstring("No"), newstring("echo [..restart AssaultCube to apply the new settings]"), NULL, NULL)); m->menusel = m->items.length()-2; // select OK -} \ No newline at end of file +} + diff --git a/source/src/protos.h b/source/src/protos.h index b6663037..a3454b57 100644 --- a/source/src/protos.h +++ b/source/src/protos.h @@ -84,7 +84,7 @@ extern void *addmenu(const char *name, const char *title = NULL, bool allowinput extern void rendermenumdl(); extern void menuset(void *m); extern void menuselect(void *menu, int sel); -extern void showmenu(char *name); +extern void showmenu(const char *name); extern void addchange(const char *desc); extern void refreshapplymenu(void *menu, bool init);