From 4d0dc8c1cbffd3ffa17cfa5daf3dabaceee4ed00 Mon Sep 17 00:00:00 2001 From: Arufonsu <17498701+Arufonsu@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:12:54 -0400 Subject: [PATCH] fix: undo RenderingEntities inline initialization fixes RenderingEntities inline initialization crashing the client when using custom map width/height --- Intersect.Client/Core/Graphics.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Intersect.Client/Core/Graphics.cs b/Intersect.Client/Core/Graphics.cs index 057f6b2173..4130884fd2 100644 --- a/Intersect.Client/Core/Graphics.cs +++ b/Intersect.Client/Core/Graphics.cs @@ -78,7 +78,7 @@ public static FloatRect CurrentView public static GameRenderer? Renderer; //Cache the Y based rendering - public static HashSet[,] RenderingEntities = new HashSet[6, Options.MapHeight * 5]; + public static HashSet[,]? RenderingEntities; private static GameContentManager sContentManager = null!; @@ -135,6 +135,7 @@ public static GameFont FindFont(string font) public static void InitInGame() { + RenderingEntities = new HashSet[6, Options.MapHeight * 5]; for (var z = 0; z < 6; z++) { for (var i = 0; i < Options.MapHeight * 5; i++)