aboutsummaryrefslogtreecommitdiff
path: root/saga/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/script.cpp')
-rw-r--r--saga/script.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/saga/script.cpp b/saga/script.cpp
index e085144de3..cba0233239 100644
--- a/saga/script.cpp
+++ b/saga/script.cpp
@@ -69,8 +69,7 @@ Script::Script(SagaEngine *vm) : _vm(vm){
_stickyVerb = kVerbWalkTo;
_leftButtonVerb = kVerbNone;
_rightButtonVerb = kVerbNone;
- _pointerObject = 0;
-
+ _pointerObject = ID_NOTHING;
_staticSize = 0;
_commonBufferSize = COMMON_BUFFER_SIZE;
@@ -419,6 +418,11 @@ void Script::setVerb(int verb) {
_firstObjectSet = false;
_secondObjectNeeded = false;
+ // The pointer object will be updated again immediately. This way the
+ // new verb will be applied to it. It's not exactly how the original
+ // engine did it, but it appears to work.
+ _pointerObject = ID_NOTHING;
+
setLeftButtonVerb( verb );
showVerb();
}