mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
Fixed a crash when selecting menu items
svn-id: r45334
This commit is contained in:
parent
ebd04d4479
commit
512c9cae11
@ -33,7 +33,6 @@
|
||||
#include "sci/engine/kernel_types.h"
|
||||
#include "sci/gui/gui.h"
|
||||
#include "sci/engine/message.h"
|
||||
#include "sci/gfx/gfx_widgets.h"
|
||||
#include "sci/gfx/gfx_state_internal.h" // required for GfxPort, GfxVisual
|
||||
#include "sci/gfx/menubar.h"
|
||||
|
||||
|
@ -181,7 +181,7 @@ reg_t kMenuSelect(EngineState *s, int argc, reg_t *argv) {
|
||||
if (menu_mode) {
|
||||
int old_item;
|
||||
int old_menu;
|
||||
GfxPort *port = NULL;
|
||||
GfxPort *port = sciw_new_menu(s, s->titlebar_port, s->_menubar, 0);
|
||||
|
||||
item_nr = -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user