From f1fdfeda346cb6917bac351a4c3e8957a1c37b39 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 6 Sep 2004 11:50:32 +0000 Subject: Don't check for verbs, if no verbs exist. svn-id: r14934 --- scumm/verbs.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scumm/verbs.cpp') 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; -- cgit v1.2.3