[Scummvm-git-logs] scummvm master -> 3c4ec45b596f7199289469d499f5dbbaa6ac395f
bluegr
noreply at scummvm.org
Mon Jul 4 06:08:26 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:
3c4ec45b59 CHEWY: Ignore invalid text entries - bug #13650
Commit: 3c4ec45b596f7199289469d499f5dbbaa6ac395f
https://github.com/scummvm/scummvm/commit/3c4ec45b596f7199289469d499f5dbbaa6ac395f
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2022-07-04T09:08:04+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