From a225380467907f1b24223035c679f39ec3640432 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 17 Jan 2025 11:18:41 -0800 Subject: [PATCH] Fixed shutdown issue --- BeefLibs/Beefy2D/src/res/FilePack.bf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BeefLibs/Beefy2D/src/res/FilePack.bf b/BeefLibs/Beefy2D/src/res/FilePack.bf index 30fa734b..973ab024 100644 --- a/BeefLibs/Beefy2D/src/res/FilePack.bf +++ b/BeefLibs/Beefy2D/src/res/FilePack.bf @@ -282,19 +282,19 @@ static class FilePackManager { } - static StableIndexedList sStreams = new .() ~ DeleteContainerAndItems!(_); - static StableIndexedList sFindFileData = new .() ~ DeleteContainerAndItems!(_); + static StableIndexedList sStreams = new .() ~ { DeleteContainerAndItems!(_); _ = null; } + static StableIndexedList sFindFileData = new .() ~ { DeleteContainerAndItems!(_); _ = null; } static Stream TryGetStream(Platform.BfpFile* file, out int idx) { idx = (int)(void*)file; - return sStreams.SafeGet(idx); + return sStreams?.SafeGet(idx); } static FilePack.FindFileData TryGetFindFileData(Platform.BfpFindFileData* findFileData, out int idx) { idx = (int)(void*)findFileData; - return sFindFileData.SafeGet(idx); + return sFindFileData?.SafeGet(idx); } public static struct HookOverrides