From 447809f75b7365a4f56e6601d9b532b92efe675e Mon Sep 17 00:00:00 2001 From: Fernando Arzola <17498701+Arufonsu@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:15:20 -0400 Subject: [PATCH] fix: undo RenderingEntities inline initialization (#2374) 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++)