projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- added support for rounded rectangles for use in the menu
[supertux.git]
/
src
/
options_menu.cpp
diff --git
a/src/options_menu.cpp
b/src/options_menu.cpp
index
c4c7ac9
..
93ab43d
100644
(file)
--- a/
src/options_menu.cpp
+++ b/
src/options_menu.cpp
@@
-158,14
+158,13
@@
OptionsMenu::menu_action(MenuItem* item)
Menu* get_options_menu()
{
Menu* get_options_menu()
{
- //
if(options_menu == NULL)
+ //
static OptionsMenu menu;
options_menu = new OptionsMenu();
options_menu = new OptionsMenu();
-
return options_menu;
}
void free_options_menu()
{
delete options_menu;
return options_menu;
}
void free_options_menu()
{
delete options_menu;
- options_menu =
NULL
;
+ options_menu =
0
;
}
}