aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/game.cpp
diff options
context:
space:
mode:
authorMax Horn2009-03-24 11:31:16 +0000
committerMax Horn2009-03-24 11:31:16 +0000
commit9ea32d4aa12329d3bfe163664f5d84d7318c01db (patch)
treed1c03e8640f2dc3f4b0361bab317ac09276388f8 /engines/sci/engine/game.cpp
parent47f9b2eb6d2248e41a58c1e60498c829c41a6317 (diff)
downloadscummvm-rg350-9ea32d4aa12329d3bfe163664f5d84d7318c01db.tar.gz
scummvm-rg350-9ea32d4aa12329d3bfe163664f5d84d7318c01db.tar.bz2
scummvm-rg350-9ea32d4aa12329d3bfe163664f5d84d7318c01db.zip
SCI: C++ify menu code
svn-id: r39659
Diffstat (limited to 'engines/sci/engine/game.cpp')
-rw-r--r--engines/sci/engine/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/game.cpp b/engines/sci/engine/game.cpp
index d7c5249ca8..11f90c962b 100644
--- a/engines/sci/engine/game.cpp
+++ b/engines/sci/engine/game.cpp
@@ -649,7 +649,7 @@ int game_init(EngineState *s) {
s->parser_nodes[0].type = PARSE_TREE_NODE_LEAF;
s->parser_nodes[0].content.value = 0;
- s->menubar = menubar_new(); // Create menu bar
+ s->_menubar = new Menubar(); // Create menu bar
if (s->sfx_init_flags & SFX_STATE_FLAG_NOSOUND)
game_init_sound(s, 0);
@@ -680,7 +680,7 @@ int game_exit(EngineState *s) {
// TODO Free scripts here
- menubar_free(s->menubar);
+ delete s->_menubar;
_free_graphics_input(s);