LURE: Fix crash caused by trying to talk to a character when an ask action is in progress
This commit is contained in:
parent
528ff10d2b
commit
197409da40
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue