[Scummvm-git-logs] scummvm branch-2-6 -> a690d56e7c1a32b187c8c9f16cb89b291668ed8b

bluegr noreply at scummvm.org
Mon Jul 4 06:09:47 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:
a690d56e7c CHEWY: Ignore invalid text entries - bug #13650


Commit: a690d56e7c1a32b187c8c9f16cb89b291668ed8b
    https://github.com/scummvm/scummvm/commit/a690d56e7c1a32b187c8c9f16cb89b291668ed8b
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2022-07-04T09:09:30+03:00

Commit Message:
CHEWY: Ignore invalid text entries - bug #13650

Changed paths:
    engines/chewy/text.cpp


diff --git a/engines/chewy/text.cpp b/engines/chewy/text.cpp
index c690be040db..fe2de5eacee 100644
--- a/engines/chewy/text.cpp
+++ b/engines/chewy/text.cpp
@@ -209,7 +209,9 @@ TextEntry *Text::getText(uint chunk, uint entry, int type, int subEntry) {
 		if (isAutoDialog)
 			ptr += 3;
 
-		if (txtNum == entry && curSubEntry == subEntry) {
+		d->_text.trim();
+
+		if (txtNum == entry && curSubEntry == subEntry && d->_text.size() > 1) {
 			// Found
 			delete[] data;
 			return d;




More information about the Scummvm-git-logs mailing list