aboutsummaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorColin Snover2017-05-12 22:05:11 -0500
committerColin Snover2017-05-13 22:46:13 -0500
commit262ef4de61727ebe6ede497f871ef858253c9956 (patch)
treec158627e8a80d24a4dada143a990c74f0e09ff5b /video
parentea6eebca09f9303cd08aa6d767123ba383c548e8 (diff)
downloadscummvm-rg350-262ef4de61727ebe6ede497f871ef858253c9956.tar.gz
scummvm-rg350-262ef4de61727ebe6ede497f871ef858253c9956.tar.bz2
scummvm-rg350-262ef4de61727ebe6ede497f871ef858253c9956.zip
SCI32: Fix crash at end of Torin
This "fix" is more of a hack, in the interest of making the game completable. The root cause is a combination of two problems in the game scripts: 1. Blink::init expects to receive either 0 or 2 arguments, but it assumes that if it received *any* arguments, it must have received 2 arguments. This assumption is wrong, though, because-- 2. soTorinWhoAreYou::changeState(0) calls poPecandEyes::setCycle(Blink) without including a second argument (the blink speed). This ends up with the second parameter being some garbage, and that garbage gets sent to kRandom which then complains about receiving garbage. The correct fix for this would be to fix soTorinWhoAreYou (in script 51400) to pass a second argument to setCycle, but there are not enough obvious spare bytes for a quick and easy patch, so this workaround will have to do for now. Fixes Trac#9779.
Diffstat (limited to 'video')
0 files changed, 0 insertions, 0 deletions