From 7238328361871a99c55d33a179b7e0cd2bad19b2 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Thu, 3 Sep 2020 22:16:04 -0700 Subject: [PATCH] Fixes GoGump NPE (#221) --- Projects/UOContent/Gumps/Go/GoGump.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Projects/UOContent/Gumps/Go/GoGump.cs b/Projects/UOContent/Gumps/Go/GoGump.cs index 94607f9ac..ab510514a 100644 --- a/Projects/UOContent/Gumps/Go/GoGump.cs +++ b/Projects/UOContent/Gumps/Go/GoGump.cs @@ -163,7 +163,9 @@ namespace Server.Gumps x = BorderSize + OffsetSize; y += EntryHeight + OffsetSize; - var name = index >= node.Categories.Length ? node.Locations[index].Name : node.Categories[index].Name; + var name = index >= node.Categories.Length + ? node.Locations[index - node.Categories.Length].Name + : node.Categories[index].Name; AddImageTiled(x, y, EntryWidth, EntryHeight, EntryGumpID); AddLabelCropped(x + TextOffsetX, y, EntryWidth - TextOffsetX, EntryHeight, TextHue, name);