From d8ae063298997377a876b774164c4b1a5feccad4 Mon Sep 17 00:00:00 2001 From: NovaRain Date: Wed, 13 May 2026 10:05:46 +0800 Subject: [PATCH] Fixed the morning start time while traveling on the world map * it starts at 6:01 instead of 6:00, inconsistent with afternoon (12:00) and night (18:00). Fixed potential index out of bounds error in wmMapIdxToName_. (ref. fallout2-ce/fallout2-ce#453) --- sfall/Modules/BugFixes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sfall/Modules/BugFixes.cpp b/sfall/Modules/BugFixes.cpp index 1ba946e0..d96a0d8c 100644 --- a/sfall/Modules/BugFixes.cpp +++ b/sfall/Modules/BugFixes.cpp @@ -4545,6 +4545,13 @@ void BugFixes::init() { // Fix for minor visual glitch when selecting perks that modify SPECIAL stats SafeWriteBatch(65, {0x434C76, 0x434D2A, 0x434E00, 0x434EB5}); // PrintBasicStat_ (was 40) + + // Fix potential index out of bounds error in wmMapIdxToName_ engine function + SafeWrite8(0x4BF97A, 0x7E); // jz > jle + SafeWrite8(0x4BF982, 0x7C); // jle > jl + + // Fix for the morning starting at 6:01 instead of 6:00 while traveling on the world map + SafeWrite8(0x4C0765, 0x7C); // jle > jl (wmRndEncounterOccurred_) } }