From 5b9b6b6b7087555723665b0e243de1a9f2d5b018 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 29 Jan 2010 22:02:28 +0000 Subject: Fix compile when ENABLE_SCI32 is not set. svn-id: r47682 --- engines/sci/engine/kevent.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine/kevent.cpp') diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp index 9ecd35ebde..d1a4e8eae6 100644 --- a/engines/sci/engine/kevent.cpp +++ b/engines/sci/engine/kevent.cpp @@ -47,10 +47,12 @@ reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) { SegManager *segMan = s->_segMan; Common::Point mousePos; - if (s->_gui) - mousePos = s->_gui->getCursorPos(); - else +#ifdef ENABLE_SCI32 + if (s->_gui32) mousePos = s->_gui32->getCursorPos(); + else +#endif + mousePos = s->_gui->getCursorPos(); // If there's a simkey pending, and the game wants a keyboard event, use the // simkey instead of a normal event -- cgit v1.2.3