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