diff options
Diffstat (limited to 'engines/lab/interface.cpp')
-rw-r--r-- | engines/lab/interface.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/lab/interface.cpp b/engines/lab/interface.cpp index fc7ba1e633..21b5764cc2 100644 --- a/engines/lab/interface.cpp +++ b/engines/lab/interface.cpp @@ -164,7 +164,6 @@ static bool keyPress(uint16 *KeyCode) { } IntuiMessage IMessage; -extern Gadget *ScreenGadgetList; IntuiMessage *LabEngine::getMsg() { Gadget *curgad; @@ -190,7 +189,7 @@ IntuiMessage *LabEngine::getMsg() { IMessage.msgClass = MOUSEBUTTONS; return &IMessage; } else if (keyPress(&IMessage.code)) { /* Keyboard key */ - curgad = checkNumGadgetHit(ScreenGadgetList, IMessage.code); + curgad = checkNumGadgetHit(_event->_screenGadgetList, IMessage.code); if (curgad) { IMessage.msgClass = GADGETUP; |