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

scemino noreply at scummvm.org
Thu Nov 20 20:33:05 UTC 2025


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:
e2a8d778f4 TWP: Fix sayOrMumbleLine where some lines should be displayed


Commit: e2a8d778f47c83587eb080afcf1c7602f86b4420
    https://github.com/scummvm/scummvm/commit/e2a8d778f47c83587eb080afcf1c7602f86b4420
Author: scemino (scemino74 at gmail.com)
Date: 2025-11-20T21:32:38+01:00

Commit Message:
TWP: Fix sayOrMumbleLine where some lines should be displayed

Changed paths:
    engines/twp/actorlib.cpp


diff --git a/engines/twp/actorlib.cpp b/engines/twp/actorlib.cpp
index caf0a9c85cf..85913031ffb 100644
--- a/engines/twp/actorlib.cpp
+++ b/engines/twp/actorlib.cpp
@@ -867,9 +867,8 @@ static SQInteger sayOrMumbleLine(HSQUIRRELVM v) {
 		for (int i = 0; i < numIds; i++) {
 			if (sq_gettype(v, index + i) != OT_NULL) {
 				Common::String text;
-				if (SQ_FAILED(sqget(v, index + i, text)))
-					return sq_throwerror(v, "failed to get text");
-				texts.push_back(text);
+				if (SQ_SUCCEEDED(sqget(v, index + i, text)))
+					texts.push_back(text);
 			}
 		}
 	}




More information about the Scummvm-git-logs mailing list