aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;