diff options
author | Travis Howell | 2004-09-06 11:50:32 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-06 11:50:32 +0000 |
commit | f1fdfeda346cb6917bac351a4c3e8957a1c37b39 (patch) | |
tree | fdd64c4a118cbc3aeb48a99a6886ab0f242d4898 /scumm/verbs.cpp | |
parent | 85bd972d89e470c3ab67e1e1a4bafa68cb0311b7 (diff) | |
download | scummvm-rg350-f1fdfeda346cb6917bac351a4c3e8957a1c37b39.tar.gz scummvm-rg350-f1fdfeda346cb6917bac351a4c3e8957a1c37b39.tar.bz2 scummvm-rg350-f1fdfeda346cb6917bac351a4c3e8957a1c37b39.zip |
Don't check for verbs, if no verbs exist.
svn-id: r14934
Diffstat (limited to 'scumm/verbs.cpp')
-rw-r--r-- | scumm/verbs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp index fd9203c2ac..578c9327d3 100644 --- a/scumm/verbs.cpp +++ b/scumm/verbs.cpp @@ -343,6 +343,9 @@ void ScummEngine::verbMouseOver(int verb) { } int ScummEngine::checkMouseOver(int x, int y) const { + if (!_numVerbs) + return 0; + VerbSlot *vs; int i = _numVerbs - 1; |