Fixed a crash when selecting menu items

svn-id: r45334
This commit is contained in:
Filippos Karapetis 2009-10-22 09:36:46 +00:00
parent ebd04d4479
commit 512c9cae11
2 changed files with 1 additions and 2 deletions

View File

@ -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"

View File

@ -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;