diff --git a/src/core/game/TerrainMapLoader.ts b/src/core/game/TerrainMapLoader.ts index 3ea90cbf2..e3f0a0635 100644 --- a/src/core/game/TerrainMapLoader.ts +++ b/src/core/game/TerrainMapLoader.ts @@ -107,8 +107,10 @@ export async function loadTerrainMap( : undefined, sharedDirtyBuffer: undefined, // populated by consumer when needed }; - // Always cache the result, but only use cache when appropriate - loadedMaps.set(map, result); + // Only cache the result when caching is actually used (non-SAB path) + if (shouldUseCache) { + loadedMaps.set(map, result); + } return result; }