v0.1.7 — Critical Crash Fix
Since v0.1.6, loading a save game crashed the engine 100% of the time with
ReferenceError: gameLoop is not defined. Every player who tried to continue
a run hit a dead end. The world was there — the loop just couldn't reach it.
The root cause: gameLoop was declared inside main() and set
correctly during initialization, but never passed into setupWindowManager.
Window manager callbacks that needed to restart the loop after a load had no reference to
it. One argument, one fix.
Also in this release: the last of the as unknown as type assertion escape
hatches in PrayerSystem, AchievementService, and
ThreatResponseSystem have been replaced with proper type guards. The compiler
now actually checks those paths.
Fixes
-
Critical — MUL-2899
Save load crash eliminated —
gameLoopis now correctly passed tosetupWindowManager. TheReferenceError: gameLoop is not definedcrash on every save load is resolved. Worlds are reachable again. -
Type Safety
Removed remaining
as unknown astype assertion escape hatches inPrayerSystem,AchievementService, andThreatResponseSystem. Replaced with proper type guards.