[Scummvm-git-logs] scummvm master -> c68ea70c3d7b4e467c07846b3f68323ac3c97060
rsn8887
noreply at scummvm.org
Sun Jan 25 23:20:10 UTC 2026
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:
c68ea70c3d HE: Use const instead of static, fixes crash on PSP hardware
Commit: c68ea70c3d7b4e467c07846b3f68323ac3c97060
https://github.com/scummvm/scummvm/commit/c68ea70c3d7b4e467c07846b3f68323ac3c97060
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2026-01-25T17:18:53-06:00
Commit Message:
HE: Use const instead of static, fixes crash on PSP hardware
Without this, PSP crashes on adding or starting a scumm game.
The crash happens only on real hardware, not on the emulator.
Changed paths:
engines/scumm/he/moonbase/map_spiff.cpp
diff --git a/engines/scumm/he/moonbase/map_spiff.cpp b/engines/scumm/he/moonbase/map_spiff.cpp
index 7b211bf5586..93c20c1cc05 100644
--- a/engines/scumm/he/moonbase/map_spiff.cpp
+++ b/engines/scumm/he/moonbase/map_spiff.cpp
@@ -483,10 +483,10 @@ void SpiffGenerator::generate() {
// kElevMedium with kElevLow or WATER kElevMedium or kElevLow, possible WATER if no kElevMedium left, down, or down-left
// kElevHigh with kElevLow or WATER kElevMedium
- static int highAmt = 105;
- static int mediumAmt = 100 + _waterAmountG;
- static int lowAmt = 105 + 3 * _waterAmountG;
- static int waterAmt = 15 * _waterAmountG;
+ const int highAmt = 105;
+ const int mediumAmt = 100 + _waterAmountG;
+ const int lowAmt = 105 + 3 * _waterAmountG;
+ const int waterAmt = 15 * _waterAmountG;
More information about the Scummvm-git-logs
mailing list