diff --git a/src/AcDream.App/Rendering/GameWindow.cs b/src/AcDream.App/Rendering/GameWindow.cs index 14463e8..e679b92 100644 --- a/src/AcDream.App/Rendering/GameWindow.cs +++ b/src/AcDream.App/Rendering/GameWindow.cs @@ -1620,12 +1620,11 @@ public sealed class GameWindow : IDisposable // are initialised earlier in OnLoad (line ~1083); both are non-null // here. The resolver lambda captures _dats and swallows dat-lookup // throws — see C.1.5a spec §6 (error handling) for rationale. - var capturedDatsForActivator = _dats; uint ResolveDefaultScript(AcDream.Core.World.WorldEntity e) { try { - var setup = capturedDatsForActivator?.Get(e.SourceGfxObjOrSetupId); + var setup = capturedDats?.Get(e.SourceGfxObjOrSetupId); return setup?.DefaultScript.DataId ?? 0u; } catch