LURE: Fix crash caused by trying to talk to a character when an ask action is in progress

This commit is contained in:
Paul Gilbert 2011-09-09 22:10:03 +10:00
parent 528ff10d2b
commit 197409da40

View file

@ -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);