[Scummvm-git-logs] scummvm master -> af6806e03058329f9d712cf73c7121b0c7d936e4
eriktorbjorn
noreply at scummvm.org
Sat May 18 07:23:23 UTC 2024
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:
af6806e030 SCUMM: Close IQ points file before trying to read it again
Commit: af6806e03058329f9d712cf73c7121b0c7d936e4
https://github.com/scummvm/scummvm/commit/af6806e03058329f9d712cf73c7121b0c7d936e4
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2024-05-18T09:20:21+02:00
Commit Message:
SCUMM: Close IQ points file before trying to read it again
When clearing the series IQ points (only in the Mac version of Indiana
Jones and the Last Crusade?), make sure to close the file immediately
after zeroing it. Otherwise, it may not have been created when
updateIQPoints() tries to read it.
Note that clearing the series IQ point seems to be broken at the time,
and this does not fix that. But one thing at a time.
Changed paths:
engines/scumm/script_v4.cpp
diff --git a/engines/scumm/script_v4.cpp b/engines/scumm/script_v4.cpp
index 9770746e481..3386193b6ac 100644
--- a/engines/scumm/script_v4.cpp
+++ b/engines/scumm/script_v4.cpp
@@ -341,9 +341,9 @@ void ScummEngine_v4::clearSeriesIQPoints() {
for (int i = 0; i < size; i++)
file->writeByte(0);
- updateIQPoints();
-
delete file;
+
+ updateIQPoints();
}
}
More information about the Scummvm-git-logs
mailing list