diff options
author | Eugene Sandulenko | 2006-09-21 12:14:29 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-09-21 12:14:29 +0000 |
commit | 25a6af2c93031b26d3a7c501b9546108f8aa0b43 (patch) | |
tree | 6bf6707478c02e028c5645b9f15043cd35093981 /engines | |
parent | 965cfe40086df3274e8228a526a624b96bfc5e03 (diff) | |
download | scummvm-rg350-25a6af2c93031b26d3a7c501b9546108f8aa0b43.tar.gz scummvm-rg350-25a6af2c93031b26d3a7c501b9546108f8aa0b43.tar.bz2 scummvm-rg350-25a6af2c93031b26d3a7c501b9546108f8aa0b43.zip |
Fix bug #1536932: "MANIACNES: Crash on click in speechtext-area"
svn-id: r23962
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/verbs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/scumm/verbs.cpp b/engines/scumm/verbs.cpp index c9a3ecc253..14f72de6c0 100644 --- a/engines/scumm/verbs.cpp +++ b/engines/scumm/verbs.cpp @@ -518,6 +518,11 @@ void ScummEngine::checkExecVerbs() { byte code = _mouseAndKeyboardStat & MBS_LEFT_CLICK ? 1 : 2; int inventoryArea = (_game.platform == Common::kPlatformNES) ? 48: 32; + // This could be kUnkVirtScreen. + // Fixes bug #1536932: "MANIACNES: Crash on click in speechtext-area + if (!zone) + return; + if (_game.version <= 2 && zone->number == kVerbVirtScreen && _mouse.y <= zone->topline + 8) { // Click into V2 sentence line runInputScript(5, 0, 0); |