[Scummvm-git-logs] scummvm master -> e47ae442d2b7b3596c9426266473b02eda045df8
sev-
noreply at scummvm.org
Sun Oct 5 20:40:53 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:
e47ae442d2 WAGE: More robust script decompilation
Commit: e47ae442d2b7b3596c9426266473b02eda045df8
https://github.com/scummvm/scummvm/commit/e47ae442d2b7b3596c9426266473b02eda045df8
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-10-05T22:19:46+02:00
Commit Message:
WAGE: More robust script decompilation
Fixes bug #16259: "WAGE: Lost Skater hangs on startup"
Changed paths:
engines/wage/script.cpp
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp
index 99647d7a26c..585b1088728 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -1264,7 +1264,7 @@ void Script::convertToText() {
ScriptText *scr = new ScriptText;
scr->offset = _data->pos();
- while(true) {
+ while (true) {
int c = _data->readByte();
if (_data->eos())
@@ -1284,8 +1284,14 @@ void Script::convertToText() {
warning("convertToText: Unknown code 0x%02x at %d", c, (int)_data->pos());
c = ' ';
}
+
+ if (_data->eos())
+ break;
} while (c < 0x80);
+ if (_data->eos())
+ break;
+
_data->seek(-1, SEEK_CUR);
} else if (c == 0xff) {
int value = _data->readByte();
More information about the Scummvm-git-logs
mailing list