mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
TITANIC: Fix crash if you exit the game whilst a bot is talking
This commit is contained in:
parent
d9eebaf787
commit
a6026fc1fc
@ -130,6 +130,10 @@ bool CTrueTalkNPC::TrueTalkNotifySpeechStartedMsg(CTrueTalkNotifySpeechStartedMs
|
||||
|
||||
bool CTrueTalkNPC::TrueTalkNotifySpeechEndedMsg(CTrueTalkNotifySpeechEndedMsg *msg) {
|
||||
debugC(DEBUG_DETAILED, kDebugScripts, "%s TrueTalkNotifySpeechEndedMsg flags=%x dialogueId=%d", getName().c_str(), _npcFlags, msg->_dialogueId);
|
||||
|
||||
if (!getGameManager())
|
||||
return false;
|
||||
|
||||
_npcFlags &= ~NPCFLAG_SPEAKING;
|
||||
--_speechCounter;
|
||||
_speechDuration = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user