[Scummvm-tracker] [ScummVM] #9712: IHNM: Error when using the give verb on an actor

Torbjörn Andersson trac at scummvm.org
Sun Apr 16 21:50:06 CEST 2017


#9712: IHNM: Error when using the give verb on an actor
------------------------------+--------------------------
  Reporter:  bgK              |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  normal           |  Component:  Engine: SAGA
Resolution:                   |   Keywords:
      Game:  I Have No Mouth  |
------------------------------+--------------------------

Comment (by eriktorbjorn):

 It seems to be because Script::doVerb() tries to use the second object,
 _pendingObject[1], even though it hasn't been set yet.

 _pendingObject[1] is copied from _currentObject[1] in Script::hitObject().

 _currentObject[] is set near the end of Script::whichObject(), but only if
 objectId != _pointerObject. I noticed that when I tried it, there was a
 difference if I moved the cursor away from the actor before clicking on it
 a second time. In that case, the verb line was updated properly and the
 error wasn't triggered.

 That's as far as I'll get tonight, at least.

--
Ticket URL: <https://bugs.scummvm.org/ticket/9712#comment:1>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list