[Scummvm-git-logs] scummvm master -> f26566e500ce1b7c2a05f7159b8f7b03443a8a58

bluegr noreply at scummvm.org
Wed Feb 25 21:59:17 UTC 2026


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

Summary:
f26566e500 NANCY: Fix off-by-one error in TableIndexSetValueHS correctness check


Commit: f26566e500ce1b7c2a05f7159b8f7b03443a8a58
    https://github.com/scummvm/scummvm/commit/f26566e500ce1b7c2a05f7159b8f7b03443a8a58
Author: Philipp Führer (philipp.fuehrer at netzbeben.de)
Date: 2026-02-25T23:59:12+02:00

Commit Message:
NANCY: Fix off-by-one error in TableIndexSetValueHS correctness check

Changed paths:
    engines/nancy/action/datarecords.cpp


diff --git a/engines/nancy/action/datarecords.cpp b/engines/nancy/action/datarecords.cpp
index 4a2931985b6..a5d73526343 100644
--- a/engines/nancy/action/datarecords.cpp
+++ b/engines/nancy/action/datarecords.cpp
@@ -86,7 +86,7 @@ void TableIndexSetValueHS::execute() {
 		// Check for correctness...
 
 		// ...of current index only...
-		if (playerTable->singleValues[_tableIndex] == tabl->correctIDs[_tableIndex]) {
+		if (playerTable->singleValues[_tableIndex - 1] == tabl->correctIDs[_tableIndex - 1]) {
 			NancySceneState.setEventFlag(_entryCorrectFlagID, g_nancy->_true);
 		} else {
 			NancySceneState.setEventFlag(_entryCorrectFlagID, g_nancy->_false);




More information about the Scummvm-git-logs mailing list