[Scummvm-git-logs] scummvm master -> 6a60a73840353983a576eb1bfb4b35afad5b988d

athrxx noreply at scummvm.org
Fri Oct 7 23:02:11 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
6a60a73840 KYRA: fix regression from 7204eaaf


Commit: 6a60a73840353983a576eb1bfb4b35afad5b988d
    https://github.com/scummvm/scummvm/commit/6a60a73840353983a576eb1bfb4b35afad5b988d
Author: athrxx (athrxx at scummvm.org)
Date: 2022-10-08T01:01:48+02:00

Commit Message:
KYRA: fix regression from 7204eaaf

(bug no. 13886 - Kyrandia 2 and 3 crashes when trying to open options)

Changed paths:
    engines/kyra/gui/gui_v1.cpp


diff --git a/engines/kyra/gui/gui_v1.cpp b/engines/kyra/gui/gui_v1.cpp
index 982238bcc98..bd3b19347d0 100644
--- a/engines/kyra/gui/gui_v1.cpp
+++ b/engines/kyra/gui/gui_v1.cpp
@@ -97,7 +97,7 @@ void GUI_v1::initMenu(Menu &menu) {
 		printMenuText(getMenuTitle(menu), textX, textY, menu.textColor, 0, 0);
 	}
 
-	assert (menu.numberOfItems < ARRAYSIZE(menu.item));
+	assert (menu.numberOfItems <= ARRAYSIZE(menu.item));
 
 	int x1, y1, x2, y2;
 	for (int i = 0; i < menu.numberOfItems; ++i) {




More information about the Scummvm-git-logs mailing list