diff options
author | Travis Howell | 2006-05-14 06:00:40 +0000 |
---|---|---|
committer | Travis Howell | 2006-05-14 06:00:40 +0000 |
commit | ada0160e8845c8462b4bbd8460209c00d829823e (patch) | |
tree | 6d73842a088a1a01005dae00fa7b02c3857b8966 | |
parent | 4743820e30f3d69f117fe227a22b44515e3be526 (diff) | |
download | scummvm-rg350-ada0160e8845c8462b4bbd8460209c00d829823e.tar.gz scummvm-rg350-ada0160e8845c8462b4bbd8460209c00d829823e.tar.bz2 scummvm-rg350-ada0160e8845c8462b4bbd8460209c00d829823e.zip |
Check if VAR_CHARINC exists, before setting value in updateSoundSettings()
svn-id: r22462
-rw-r--r-- | engines/scumm/scumm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 4037482f14..a1e0015975 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -1513,7 +1513,8 @@ void ScummEngine::updateSoundSettings() { VAR(VAR_VOICE_MODE) = _voiceMode; _defaultTalkDelay = 9 - getTalkspeed(); - VAR(VAR_CHARINC) = _defaultTalkDelay; + if (VAR_CHARINC != 0xFF) + VAR(VAR_CHARINC) = _defaultTalkDelay; } void ScummEngine::setTalkspeed(int talkspeed) { |