From 9e5f46e635a8cb6366398f3c4082ee08c1aacde1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 16 May 2003 10:35:15 +0000 Subject: fixed V2 verb scripts svn-id: r7570 --- scumm/script.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scumm/script.cpp b/scumm/script.cpp index 8ea97bb26e..3784b35bed 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -877,6 +877,16 @@ int Scumm::getVerbEntrypoint(int obj, int entry) { ptr += 2; } while (1); return verboffs + 8 + READ_LE_UINT32(ptr + 1); + } if (_features & GF_AFTER_V2) { + do { + if (!*verbptr) + return 0; + if (*verbptr == entry || *verbptr == 0xFF) + break; + verbptr += 2; + } while (1); + + return *(verbptr + 1); } else { do { if (!*verbptr) -- cgit v1.2.3