aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kevent.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2010-01-29 22:02:28 +0000
committerMatthew Hoops2010-01-29 22:02:28 +0000
commit5b9b6b6b7087555723665b0e243de1a9f2d5b018 (patch)
tree52164de9dd178730000ce0abb2905ea34a1a66ed /engines/sci/engine/kevent.cpp
parentc6e095715c8901799aa384d2076742a2bd2e00f6 (diff)
downloadscummvm-rg350-5b9b6b6b7087555723665b0e243de1a9f2d5b018.tar.gz
scummvm-rg350-5b9b6b6b7087555723665b0e243de1a9f2d5b018.tar.bz2
scummvm-rg350-5b9b6b6b7087555723665b0e243de1a9f2d5b018.zip
Fix compile when ENABLE_SCI32 is not set.
svn-id: r47682
Diffstat (limited to 'engines/sci/engine/kevent.cpp')
-rw-r--r--engines/sci/engine/kevent.cpp8
1 files changed, 5 insertions, 3 deletions
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