diff options
author | Paul Gilbert | 2011-09-09 22:10:03 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-09-09 22:10:03 +1000 |
commit | 197409da40b2a7a4064edf05ecf5f520faef8eea (patch) | |
tree | ca346286d251246ff73dcad6f32797976ca23d00 /engines | |
parent | 528ff10d2bb7bb5d1d43546485861e83b773c1df (diff) | |
download | scummvm-rg350-197409da40b2a7a4064edf05ecf5f520faef8eea.tar.gz scummvm-rg350-197409da40b2a7a4064edf05ecf5f520faef8eea.tar.bz2 scummvm-rg350-197409da40b2a7a4064edf05ecf5f520faef8eea.zip |
LURE: Fix crash caused by trying to talk to a character when an ask action is in progress
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lure/hotspots.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index f38bac6e12..96e5e088ab 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -1673,6 +1673,12 @@ void Hotspot::doTalkTo(HotspotData *hotspot) { faceHotspot(hotspot); endAction(); + // WORKAROUND: Fix crash when talking when an ask conversation is active + if (_data->talkDestCharacterId != 0) { + // Don't allow the talk to start + return; + } + uint16 sequenceOffset = res.getHotspotAction(hotspot->actionsOffset, TALK_TO); if (sequenceOffset >= 0x8000) { showMessage(sequenceOffset); |