From afd4858b9abc0de118d86d75e0a32db38af60c0f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 16:43:37 +0200 Subject: [PATCH] Caching: qualify FormatNumber at the single-file flush guard Co-Authored-By: Claude Sonnet 5.5 --- src/GameCult.Caching/CultCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GameCult.Caching/CultCache.cs b/src/GameCult.Caching/CultCache.cs index f4ebe368..657a4861 100644 --- a/src/GameCult.Caching/CultCache.cs +++ b/src/GameCult.Caching/CultCache.cs @@ -3565,7 +3565,7 @@ namespace GameCult.Caching return; } - if (FormatNumber(header) is int number && number > 2) + if (CultPersistedStoreSnapshot.FormatNumber(header) is int number && number > 2) throw new NotSupportedException( $"Store {FileInfo.FullName} is {header}, a newer format than this runtime reads " + $"({CultPersistedStoreSnapshot.FormatV1} and {CultPersistedStoreSnapshot.FormatV2}); a flush would downgrade it, so none was written.");