aboutsummaryrefslogtreecommitdiff
path: root/scumm/verbs.cpp
diff options
context:
space:
mode:
authorTravis Howell2004-09-06 11:50:32 +0000
committerTravis Howell2004-09-06 11:50:32 +0000
commitf1fdfeda346cb6917bac351a4c3e8957a1c37b39 (patch)
treefdd64c4a118cbc3aeb48a99a6886ab0f242d4898 /scumm/verbs.cpp
parent85bd972d89e470c3ab67e1e1a4bafa68cb0311b7 (diff)
downloadscummvm-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.cpp3
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;